Patch#
- class Patch#
A patch of the trajectory, at its position in
Trajectories.Patches.Note
Trajectories computes the trajectory again as the vessel flies, and the patch reads the latest one. Throws an exception if the trajectory has fewer patches.
- Tuple<double, double, double> Position (SpaceCenter.ReferenceFrame referenceFrame)#
The position of the impact, or
nullwithout one.- Parameters:
referenceFrame – The reference frame for the position.
- Game Scenes:
Flight
Note
In a reference frame that rotates with
Patch.Body, the position includes the rotation of the body until the impact.
- Tuple<double, double, double> Velocity (SpaceCenter.ReferenceFrame referenceFrame)#
The velocity at the impact, or
nullwithout one.- Parameters:
referenceFrame – The reference frame for the velocity.
- Game Scenes:
Flight
Note
In a reference frame that rotates with
Patch.Body, the velocity includes the rotation of the body until the impact.
- SpaceCenter.CelestialBody Body { get; }#
The celestial body that the patch is relative to.
- Game Scenes:
Flight
- double StartUT { get; }#
The universal time at the start of the patch, in seconds.
- Game Scenes:
Flight
- double EndUT { get; }#
The universal time at the end of the patch, in seconds.
- Game Scenes:
Flight
Note
For a patch that ends in an impact, this is the time of the impact.
- IList<Tuple<double, double, double, double>> AtmosphericTrajectory (SpaceCenter.ReferenceFrame referenceFrame)#
The points of an atmospheric patch, or
nullfor a patch in space.- Parameters:
referenceFrame – The reference frame for the positions.
- Game Scenes:
Flight
Note
Each point is a tuple
(ut, x, y, z). In a reference frame that rotates withPatch.Body, the positions include the rotation of the body until each point.
- SpaceCenter.Orbit OrbitalTrajectory { get; }#
The orbit of a patch in space, or
nullfor an atmospheric patch.- Game Scenes:
Flight