toVertices method

List<Vector2> toVertices()

Implementation

List<Vector2> toVertices() {
  return [
    topLeft.toVector2(),
    topRight.toVector2(),
    bottomRight.toVector2(),
    bottomLeft.toVector2(),
  ];
}