Table of Contents

Struct GridConfigurationKey

Namespace
GridForge.Configuration
Assembly
GridForge.dll

Exact identity key for a grid's snapped bounds and topology.

public readonly struct GridConfigurationKey : IEquatable<GridConfigurationKey>
Implements
Inherited Members

Constructors

GridConfigurationKey(Vector3d, Vector3d, GridTopologyKind, GridTopologyMetrics)

Initializes a new grid configuration key.

public GridConfigurationKey(Vector3d boundsMin, Vector3d boundsMax, GridTopologyKind topologyKind, GridTopologyMetrics topologyMetrics)

Parameters

boundsMin Vector3d
boundsMax Vector3d
topologyKind GridTopologyKind
topologyMetrics GridTopologyMetrics

Fields

BoundsMax

The maximum snapped bounds of the grid.

public readonly Vector3d BoundsMax

Field Value

Vector3d

BoundsMin

The minimum snapped bounds of the grid.

public readonly Vector3d BoundsMin

Field Value

Vector3d

TopologyKind

The grid topology used by these bounds.

public readonly GridTopologyKind TopologyKind

Field Value

GridTopologyKind

TopologyMetrics

The topology metrics used by these bounds.

public readonly GridTopologyMetrics TopologyMetrics

Field Value

GridTopologyMetrics

Methods

Equals(GridConfigurationKey)

public bool Equals(GridConfigurationKey other)

Parameters

other GridConfigurationKey

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

Operators

operator ==(GridConfigurationKey, GridConfigurationKey)

public static bool operator ==(GridConfigurationKey left, GridConfigurationKey right)

Parameters

left GridConfigurationKey
right GridConfigurationKey

Returns

bool

operator !=(GridConfigurationKey, GridConfigurationKey)

public static bool operator !=(GridConfigurationKey left, GridConfigurationKey right)

Parameters

left GridConfigurationKey
right GridConfigurationKey

Returns

bool