Table of Contents

Struct GridConvexPolygon2d

Namespace
GridForge.Grids.Topology
Assembly
GridForge.dll

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

int

Properties

VertexCount

Number of boundary-ordered vertices in this polygon.

public int VertexCount { get; }

Property Value

int

Methods

CopyTo(Span<Vector2d>)

Copies the boundary-ordered vertices into caller-owned storage.

public void CopyTo(Span<Vector2d> destination)

Parameters

destination Span<Vector2d>

GetVertex(int)

Gets one boundary-ordered polygon vertex.

public Vector2d GetVertex(int index)

Parameters

index int

Returns

Vector2d