Table of Contents

Class NavigationConnection

Namespace
Trailblazer.Pathing
Assembly
Trailblazer.dll

Describes one directed, source-map-owned physical connection or shortcut.

public sealed class NavigationConnection : IEquatable<NavigationConnection>
Inheritance
NavigationConnection
Implements
Inherited Members

Constructors

NavigationConnection(string, VoxelIndex, NavigationCellAddress, Vector3d, Vector3d, Fixed64, Fixed64, IEnumerable<NavigationCellAddress>?, Fixed64, bool)

Creates one complete directed connection definition.

public NavigationConnection(string id, VoxelIndex sourceIndex, NavigationCellAddress destination, Vector3d entryAnchor, Vector3d exitAnchor, Fixed64 portalRadiusClearance, Fixed64 portalHeightClearance, IEnumerable<NavigationCellAddress>? witnesses = null, Fixed64 additionalCost = default, bool isLowerBoundCertified = false)

Parameters

id string
sourceIndex VoxelIndex
destination NavigationCellAddress
entryAnchor Vector3d
exitAnchor Vector3d
portalRadiusClearance Fixed64
portalHeightClearance Fixed64
witnesses IEnumerable<NavigationCellAddress>
additionalCost Fixed64
isLowerBoundCertified bool

Properties

AdditionalCost

The non-negative surcharge added after geometric travel cost.

public Fixed64 AdditionalCost { get; }

Property Value

Fixed64

Destination

The durable destination-cell address.

public NavigationCellAddress Destination { get; }

Property Value

NavigationCellAddress

EntryAnchor

The exact world-space point where traversal leaves the source cell.

public Vector3d EntryAnchor { get; }

Property Value

Vector3d

ExitAnchor

The exact world-space point where traversal enters the destination cell.

public Vector3d ExitAnchor { get; }

Property Value

Vector3d

Id

The stable map-local connection identifier.

public string Id { get; }

Property Value

string

IsLowerBoundCertified

Indicates that the complete connection cost certifies a Euclidean lower bound.

public bool IsLowerBoundCertified { get; }

Property Value

bool

PortalHeightClearance

The inclusive vertical clearance through the complete connection corridor.

public Fixed64 PortalHeightClearance { get; }

Property Value

Fixed64

PortalRadiusClearance

The inclusive horizontal radius clearance through the complete connection corridor.

public Fixed64 PortalRadiusClearance { get; }

Property Value

Fixed64

SourceIndex

The local source-cell index in the owning map.

public VoxelIndex SourceIndex { get; }

Property Value

VoxelIndex

Witnesses

The cells whose presence, blockage, and clearance certify this connection.

public IReadOnlyList<NavigationCellAddress> Witnesses { get; }

Property Value

IReadOnlyList<NavigationCellAddress>

Methods

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

Equals(NavigationConnection?)

public bool Equals(NavigationConnection? other)

Parameters

other NavigationConnection

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int