center property

Vec2 center

Integer center point of the rectangle

Implementation

Vec2 get center => Vec2((left + right) ~/ 2, (top + bottom) ~/ 2);