getVertex method

Vector2 getVertex(
  1. int i, {
  2. List<Vector2>? vertices,
})

Implementation

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