Méthode | 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 | |
Résultat | double |
public static Clamp ( this val, float min, float max ) : float | ||
val | this | |
min | float | |
max | float | |
Résultat | float |
public static CurrentAngleTargetRel ( double current, double target, double maxAngle ) : double | ||
current | double | |
target | double | |
maxAngle | double | |
Résultat | double |
public static IsNeutral ( AxisBinding axis ) : bool | ||
axis | AxisBinding | |
Résultat | bool |
public static SpeedUnitToMSec ( this speedUnit, SpeedMode mode, SpeedUnits units, Vessel vessel ) : double | ||
speedUnit | this | |
mode | SpeedMode | |
units | SpeedUnits | |
vessel | Vessel | |
Résultat | double |
public static TryGetValue ( this node, string key, KeyCode defaultValue ) : KeyCode | ||
node | this | |
key | string | |
defaultValue | KeyCode | |
Résultat | KeyCode |
public static TryGetValue ( this node, string key, |
||
node | this | |
key | string | |
defaultValue | ||
Résultat |
public static TryGetValue ( this node, string key, bool defaultValue ) : bool | ||
node | this | |
key | string | |
defaultValue | bool | |
Résultat | bool |
public static TryGetValue ( this node, string key, double defaultValue ) : double | ||
node | this | |
key | string | |
defaultValue | double | |
Résultat | double |
public static TryGetValue ( this node, string key, float defaultValue ) : float | ||
node | this | |
key | string | |
defaultValue | float | |
Résultat | float |
public static TryGetValue ( this node, string key, int defaultValue ) : int | ||
node | this | |
key | string | |
defaultValue | int | |
Résultat | int |
public static TryGetValue ( this node, string key, string defaultValue ) : string | ||
node | this | |
key | string | |
defaultValue | string | |
Résultat | string |
public static calcStagnationPres ( Vessel vessel ) : double | ||
vessel | Vessel | |
Résultat | double |
public static calculateTargetHeading ( |
||
rotation | ||
vessel | Vessel | |
vdata | VesselData | |
Résultat | double |
public static calculateTargetHeading ( Vector3 direction, VesselData vdata ) : double | ||
direction | Vector3 | |
vdata | VesselData | |
Résultat | double |
public static getPlaneNormal ( |
||
rotation | ||
vessel | Vessel | |
Résultat | Vector3 |
public static getPlaneRotation ( Vector3 planeNormal, Vessel vessel ) : |
||
planeNormal | Vector3 | |
vessel | Vessel | |
Résultat |
public static getPlaneRotation ( double heading, Vessel vessel, VesselData vdata ) : |
||
heading | double | |
vessel | Vessel | |
vdata | VesselData | |
Résultat |
public static headingClamp ( this valToClamp, double maxHeading ) : double | ||
valToClamp | this | |
maxHeading | double | |
Résultat | double |
public static mSecToSpeedUnit ( this mSec, SpeedMode mode, SpeedUnits units, Vessel vessel ) : double | ||
mSec | this | |
mode | SpeedMode | |
units | SpeedUnits | |
vessel | Vessel | |
Résultat | double |
public static projectOnPlane ( this vector, UnityEngine.Vector3d planeNormal ) : UnityEngine.Vector3d | ||
vector | this | |
planeNormal | UnityEngine.Vector3d | |
Résultat | UnityEngine.Vector3d |
public static speedUnitTransform ( SpeedUnits units, double soundSpeed ) : double | ||
units | SpeedUnits | |
soundSpeed | double | |
Résultat | double |
public static unitString ( SpeedUnits unit ) : string | ||
unit | SpeedUnits | |
Résultat | string |
public static vecHeading ( double target, VesselData vdata ) : Vector3 | ||
target | double | |
vdata | VesselData | |
Résultat | Vector3 |