C# Class Trajectories.Trajectory

Inheritance: UnityEngine.MonoBehaviour
Show file Open project: neuoy/KSPTrajectories Class Usage Examples

Private Properties

Property Type Description
AddPatch IEnumerable
FindOrbitBodyIntersection double
GetWorldPositionAtUT UnityEngine.Vector3d
computeTrajectoryIncrement IEnumerable
createOrbitFromState Orbit

Public Methods

Method Description
ComputeTrajectory ( Vessel vessel, Trajectories.DescentProfile profile, bool incremental ) : void
ComputeTrajectory ( Vessel vessel, float AoA, bool incremental ) : void
FixedUpdate ( ) : void
GetGroundAltitude ( CelestialBody body, Vector3 relativePosition ) : double
InvalidateAerodynamicModel ( ) : void
RealMaxAtmosphereAltitude ( CelestialBody body ) : double
SetTarget ( CelestialBody body = null, Vector3 relativePosition = null ) : void
Start ( ) : void
Update ( ) : void
calculateRotatedPosition ( CelestialBody body, Vector3 relativePosition, double time ) : Vector3

Private Methods

Method Description
AddPatch ( VesselState startingState, Trajectories.DescentProfile profile ) : IEnumerable
FindOrbitBodyIntersection ( Orbit orbit, double startTime, double endTime, double bodyAltitude ) : double
GetWorldPositionAtUT ( Orbit orbit, double ut ) : UnityEngine.Vector3d
computeTrajectoryIncrement ( Vessel vessel, Trajectories.DescentProfile profile ) : IEnumerable
createOrbitFromState ( VesselState state ) : Orbit

Method Details

ComputeTrajectory() public method

public ComputeTrajectory ( Vessel vessel, Trajectories.DescentProfile profile, bool incremental ) : void
vessel Vessel
profile Trajectories.DescentProfile
incremental bool
return void

ComputeTrajectory() public method

public ComputeTrajectory ( Vessel vessel, float AoA, bool incremental ) : void
vessel Vessel
AoA float
incremental bool
return void

FixedUpdate() public method

public FixedUpdate ( ) : void
return void

GetGroundAltitude() public static method

public static GetGroundAltitude ( CelestialBody body, Vector3 relativePosition ) : double
body CelestialBody
relativePosition Vector3
return double

InvalidateAerodynamicModel() public method

public InvalidateAerodynamicModel ( ) : void
return void

RealMaxAtmosphereAltitude() public static method

public static RealMaxAtmosphereAltitude ( CelestialBody body ) : double
body CelestialBody
return double

SetTarget() public method

public SetTarget ( CelestialBody body = null, Vector3 relativePosition = null ) : void
body CelestialBody
relativePosition Vector3
return void

Start() public method

public Start ( ) : void
return void

Update() public method

public Update ( ) : void
return void

calculateRotatedPosition() public static method

public static calculateRotatedPosition ( CelestialBody body, Vector3 relativePosition, double time ) : Vector3
body CelestialBody
relativePosition Vector3
time double
return Vector3