getRectangleCenter static method

Point<num> getRectangleCenter(
  1. Rectangle<num> r
)

Implementation

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