center property

Vec center

Implementation

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