namespace Oni { internal struct Polygon2 { private readonly Vector2[] points; public Polygon2(Vector2[] points) { this.points = points; } public int Length => points.Length; public Vector2 this[int index] => points[index]; } }