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
idstringsourceIndexVoxelIndexdestinationNavigationCellAddressentryAnchorVector3dexitAnchorVector3dportalRadiusClearanceFixed64portalHeightClearanceFixed64witnessesIEnumerable<NavigationCellAddress>additionalCostFixed64isLowerBoundCertifiedbool
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
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
IsLowerBoundCertified
Indicates that the complete connection cost certifies a Euclidean lower bound.
public bool IsLowerBoundCertified { get; }
Property Value
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
Methods
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
Equals(NavigationConnection?)
public bool Equals(NavigationConnection? other)
Parameters
otherNavigationConnection
Returns
GetHashCode()
public override int GetHashCode()