Struct GridConvexPolygon2d
Stores a boundary-ordered convex polygon produced by exact grid-cell contact clipping.
public readonly struct GridConvexPolygon2d
- Inherited Members
Fields
MaxVertexCount
Maximum vertices in the intersection of two rectangular or hexagonal cell footprints.
public const int MaxVertexCount = 12
Field Value
Properties
VertexCount
Number of boundary-ordered vertices in this polygon.
public int VertexCount { get; }
Property Value
Methods
CopyTo(Span<Vector2d>)
Copies the boundary-ordered vertices into caller-owned storage.
public void CopyTo(Span<Vector2d> destination)
Parameters
destinationSpan<Vector2d>
GetVertex(int)
Gets one boundary-ordered polygon vertex.
public Vector2d GetVertex(int index)
Parameters
indexint
Returns
- Vector2d