static Point<num> getRectangleCenter(Rectangle<num> r) => Point<num>(r.left + (r.width / 2), r.top + (r.height / 2));