Struct GridCellPrism
Describes one exact topology cell as an ordered convex XZ footprint and a closed vertical interval.
public readonly struct GridCellPrism
- Inherited Members
Remarks
Construction fails when a metric cannot be bisected exactly in the fixed-point scalar domain.
Properties
Cell
The exact runtime cell identity represented by this prism.
public WorldVoxelIndex Cell { get; }
Property Value
Center
The world-space cell center.
public Vector3d Center { get; }
Property Value
- Vector3d
FootprintVertexCount
The number of boundary-ordered footprint vertices.
public int FootprintVertexCount { get; }
Property Value
PlanarInradius
The largest radius that can be inset from every horizontal footprint edge.
public Fixed64 PlanarInradius { get; }
Property Value
- Fixed64
TopologyKind
The topology that produced the footprint.
public GridTopologyKind TopologyKind { get; }
Property Value
VerticalMax
The inclusive upper Y bound.
public Fixed64 VerticalMax { get; }
Property Value
- Fixed64
VerticalMin
The inclusive lower Y bound.
public Fixed64 VerticalMin { get; }
Property Value
- Fixed64
Methods
Contains(Vector3d)
Determines whether a world-space point lies inside or on this closed prism.
public bool Contains(Vector3d point)
Parameters
pointVector3d
Returns
CopyFootprintTo(Span<Vector2d>)
Copies the boundary-ordered XZ footprint into caller-owned storage.
public void CopyFootprintTo(Span<Vector2d> destination)
Parameters
destinationSpan<Vector2d>
GetFootprintVertex(int)
Gets one boundary-ordered XZ footprint vertex.
public Vector2d GetFootprintVertex(int index)
Parameters
indexint
Returns
- Vector2d