center property

Vector2 center

The central point of the shape.

For some shapes (circle, rectangle) the center is well-defined and unambiguous. For some, there could be multiple definitions (triangle, polygon), in which case it is up to the component to decide what its "center" should be.

Implementation

Vector2 get center;