Struct ElementInfoMatch
- Namespace
- KSP.Navigation
- Assembly
- Assembly-CSharp.dll
public struct ElementInfoMatch
- Inherited Members
-
- Extension Methods
-
Constructors
ElementInfoMatch(SelectableElementInfo, NavigationParameter)
public ElementInfoMatch(SelectableElementInfo baseInfo, NavigationParameter parameter)
Parameters
baseInfo SelectableElementInfo
parameter NavigationParameter
Fields
DirectionalDistance
public float DirectionalDistance
Field Value
- float
DistanceSqr
Field Value
- float
Offset
Field Value
- float
Parameter
public NavigationParameter Parameter
Field Value
- NavigationParameter
ResultInfo
public SelectableElementInfo ResultInfo
Field Value
- SelectableElementInfo
Methods
Match(SelectableElementInfo, MoveDirection)
public bool Match(SelectableElementInfo target, MoveDirection dir)
Parameters
target SelectableElementInfo
dir MoveDirection
Returns
- bool
MatchByDirectionalDistanceOnly(SelectableElementInfo, MoveDirection, bool)
public bool MatchByDirectionalDistanceOnly(SelectableElementInfo target, MoveDirection dir, bool calcDelta = true)
Parameters
target SelectableElementInfo
dir MoveDirection
calcDelta bool
Returns
- bool
MatchByDistanceOnly(SelectableElementInfo, MoveDirection, bool)
public bool MatchByDistanceOnly(SelectableElementInfo target, MoveDirection dir, bool calcDelta = true)
Parameters
target SelectableElementInfo
dir MoveDirection
calcDelta bool
Returns
- bool
MatchByMixedOffsetAndDistance(SelectableElementInfo, MoveDirection, bool)
public bool MatchByMixedOffsetAndDistance(SelectableElementInfo target, MoveDirection dir, bool calcDelta = true)
Parameters
target SelectableElementInfo
dir MoveDirection
calcDelta bool
Returns
- bool
MatchByOffsetOnly(SelectableElementInfo, MoveDirection, bool)
public bool MatchByOffsetOnly(SelectableElementInfo target, MoveDirection dir, bool calcDelta = true)
Parameters
target SelectableElementInfo
dir MoveDirection
calcDelta bool
Returns
- bool
MatchByOffsetWithMixedTolerance(SelectableElementInfo, MoveDirection, bool)
public bool MatchByOffsetWithMixedTolerance(SelectableElementInfo target, MoveDirection dir, bool calcDelta = true)
Parameters
target SelectableElementInfo
dir MoveDirection
calcDelta bool
Returns
- bool