Method | Description | |
---|---|---|
Clamp ( this val, double min, double max ) : double | ||
Clamp ( this val, float min, float max ) : float | ||
CurrentAngleTargetRel ( double current, double target, double maxAngle ) : double |
calculates the angle to feed corrected for 0/360 crossings eg. if the target is 350 and the current is 10, it will return 370 giving a diff of -20 degrees else you get +ve 340 and the turn is in the wrong direction
|
|
IsNeutral ( AxisBinding axis ) : bool | ||
SpeedUnitToMSec ( this speedUnit, SpeedMode mode, SpeedUnits units, Vessel vessel ) : double | ||
TryGetValue ( this node, string key, KeyCode defaultValue ) : KeyCode | ||
TryGetValue ( this node, string key, |
||
TryGetValue ( this node, string key, bool defaultValue ) : bool | ||
TryGetValue ( this node, string key, double defaultValue ) : double | ||
TryGetValue ( this node, string key, float defaultValue ) : float | ||
TryGetValue ( this node, string key, int defaultValue ) : int | ||
TryGetValue ( this node, string key, string defaultValue ) : string | ||
calcStagnationPres ( Vessel vessel ) : double | ||
calculateTargetHeading ( |
calculate current heading from plane rotation
|
|
calculateTargetHeading ( Vector3 direction, VesselData vdata ) : double |
calculate current heading from plane normal vector
|
|
getPlaneNormal ( |
||
getPlaneRotation ( Vector3 planeNormal, Vessel vessel ) : |
calculate the planet relative rotation from the plane normal vector
|
|
getPlaneRotation ( double heading, Vessel vessel, VesselData vdata ) : |
||
hasPitchInput ( ) : bool | ||
hasRollInput ( ) : bool | ||
hasThrottleInput ( ) : bool | ||
hasYawInput ( ) : bool | ||
headingClamp ( this valToClamp, double maxHeading ) : double |
Circular rounding to keep compass measurements within a 360 degree range maxHeading is the top limit, bottom limit is maxHeading - 360
|
|
mSecToSpeedUnit ( this mSec, SpeedMode mode, SpeedUnits units, Vessel vessel ) : double | ||
projectOnPlane ( this vector, UnityEngine.Vector3d planeNormal ) : UnityEngine.Vector3d | ||
speedUnitTransform ( SpeedUnits units, double soundSpeed ) : double | ||
unitString ( SpeedUnits unit ) : string | ||
vecHeading ( double target, VesselData vdata ) : Vector3 |
Plane normal vector from a given heading (surface right vector)
|
public static Clamp ( this val, double min, double max ) : double | ||
val | this | |
min | double | |
max | double | |
return | double |
public static Clamp ( this val, float min, float max ) : float | ||
val | this | |
min | float | |
max | float | |
return | float |
public static CurrentAngleTargetRel ( double current, double target, double maxAngle ) : double | ||
current | double | |
target | double | |
maxAngle | double | |
return | double |
public static IsNeutral ( AxisBinding axis ) : bool | ||
axis | AxisBinding | |
return | bool |
public static SpeedUnitToMSec ( this speedUnit, SpeedMode mode, SpeedUnits units, Vessel vessel ) : double | ||
speedUnit | this | |
mode | SpeedMode | |
units | SpeedUnits | |
vessel | Vessel | |
return | double |
public static TryGetValue ( this node, string key, KeyCode defaultValue ) : KeyCode | ||
node | this | |
key | string | |
defaultValue | KeyCode | |
return | KeyCode |
public static TryGetValue ( this node, string key, |
||
node | this | |
key | string | |
defaultValue | ||
return |
public static TryGetValue ( this node, string key, bool defaultValue ) : bool | ||
node | this | |
key | string | |
defaultValue | bool | |
return | bool |
public static TryGetValue ( this node, string key, double defaultValue ) : double | ||
node | this | |
key | string | |
defaultValue | double | |
return | double |
public static TryGetValue ( this node, string key, float defaultValue ) : float | ||
node | this | |
key | string | |
defaultValue | float | |
return | float |
public static TryGetValue ( this node, string key, int defaultValue ) : int | ||
node | this | |
key | string | |
defaultValue | int | |
return | int |
public static TryGetValue ( this node, string key, string defaultValue ) : string | ||
node | this | |
key | string | |
defaultValue | string | |
return | string |
public static calcStagnationPres ( Vessel vessel ) : double | ||
vessel | Vessel | |
return | double |
public static calculateTargetHeading ( |
||
rotation | ||
vessel | Vessel | |
vdata | VesselData | |
return | double |
public static calculateTargetHeading ( Vector3 direction, VesselData vdata ) : double | ||
direction | Vector3 | |
vdata | VesselData | |
return | double |
public static getPlaneNormal ( |
||
rotation | ||
vessel | Vessel | |
return | Vector3 |
public static getPlaneRotation ( Vector3 planeNormal, Vessel vessel ) : |
||
planeNormal | Vector3 | |
vessel | Vessel | |
return |
public static getPlaneRotation ( double heading, Vessel vessel, VesselData vdata ) : |
||
heading | double | |
vessel | Vessel | |
vdata | VesselData | |
return |
public static headingClamp ( this valToClamp, double maxHeading ) : double | ||
valToClamp | this | |
maxHeading | double | |
return | double |
public static mSecToSpeedUnit ( this mSec, SpeedMode mode, SpeedUnits units, Vessel vessel ) : double | ||
mSec | this | |
mode | SpeedMode | |
units | SpeedUnits | |
vessel | Vessel | |
return | double |
public static projectOnPlane ( this vector, UnityEngine.Vector3d planeNormal ) : UnityEngine.Vector3d | ||
vector | this | |
planeNormal | UnityEngine.Vector3d | |
return | UnityEngine.Vector3d |
public static speedUnitTransform ( SpeedUnits units, double soundSpeed ) : double | ||
units | SpeedUnits | |
soundSpeed | double | |
return | double |
public static unitString ( SpeedUnits unit ) : string | ||
unit | SpeedUnits | |
return | string |
public static vecHeading ( double target, VesselData vdata ) : Vector3 | ||
target | double | |
vdata | VesselData | |
return | Vector3 |