Vector2 getVertex(int i, {List<Vector2>? vertices}) { vertices ??= globalVertices(); return vertices[i % vertices.length]; }