class KerbalDyn::OrbitalManeuver::BurnEvent
Encapsulates information about a burn event.
Public Class Methods
new(options={})
click to toggle source
Create a new burn event.
The following parameters are expected to be given:
- initial_velocity
-
The velocity before the burn.
- final_velocity
-
The velocity after the burn.
- time
-
The time of the burn.
- orbital_radius
-
The orbital radius at the time of the burn.
- mean_anomaly
-
The mean anomaly at the time of the burn.
The following parameters are optional.
- epoch
-
Used to offset the time.
# File lib/kerbaldyn/orbital_maneuver/burn_event.rb, line 19 def initialize(options={}) process_options(options, :epoch => 0.0) end
Public Instance Methods
delta_velocity()
click to toggle source
Returns the change in velocity for this maneuver.
Note that the sign may be meaningful to the maneuver. For example, a retrograde burn is usually negative.
# File lib/kerbaldyn/orbital_maneuver/burn_event.rb, line 45 def delta_velocity return self.final_velocity - self.initial_velocity end
Also aliased as: delta_v
epoch_time()
click to toggle source
Gives the time of this event in epoch time if epoch was set.
# File lib/kerbaldyn/orbital_maneuver/burn_event.rb, line 51 def epoch_time return time + epoch end