pub struct KeplerianBuilder { /* private fields */ }Expand description
Builder for constructing validated Keplerian elements.
Implementations§
Source§impl KeplerianBuilder
impl KeplerianBuilder
Sourcepub fn with_semi_major_axis(
self,
semi_major_axis: SemiMajorAxis,
eccentricity: f64,
) -> Self
pub fn with_semi_major_axis( self, semi_major_axis: SemiMajorAxis, eccentricity: f64, ) -> Self
Sets the semi-major axis and eccentricity.
Sourcepub fn with_radii(
self,
periapsis_radius: Distance,
apoapsis_radius: Distance,
) -> Self
pub fn with_radii( self, periapsis_radius: Distance, apoapsis_radius: Distance, ) -> Self
Sets the orbit shape from periapsis and apoapsis radii.
Sourcepub fn with_altitudes(
self,
periapsis_altitude: Distance,
apoapsis_altitude: Distance,
mean_radius: Distance,
) -> Self
pub fn with_altitudes( self, periapsis_altitude: Distance, apoapsis_altitude: Distance, mean_radius: Distance, ) -> Self
Sets the orbit shape from periapsis and apoapsis altitudes above a mean radius.
Sourcepub fn with_inclination(self, inclination: Angle) -> Self
pub fn with_inclination(self, inclination: Angle) -> Self
Sets the inclination.
Sourcepub fn with_longitude_of_ascending_node(
self,
longitude_of_ascending_node: Angle,
) -> Self
pub fn with_longitude_of_ascending_node( self, longitude_of_ascending_node: Angle, ) -> Self
Sets the longitude of ascending node.
Sourcepub fn with_argument_of_periapsis(self, argument_of_periapsis: Angle) -> Self
pub fn with_argument_of_periapsis(self, argument_of_periapsis: Angle) -> Self
Sets the argument of periapsis.
Sourcepub fn with_true_anomaly(self, true_anomaly: Angle) -> Self
pub fn with_true_anomaly(self, true_anomaly: Angle) -> Self
Sets the true anomaly.
Sourcepub fn with_mean_anomaly(self, mean_anomaly: Angle) -> Self
pub fn with_mean_anomaly(self, mean_anomaly: Angle) -> Self
Sets the mean anomaly (converted to true anomaly during build).
Trait Implementations§
Source§impl Clone for KeplerianBuilder
impl Clone for KeplerianBuilder
Source§fn clone(&self) -> KeplerianBuilder
fn clone(&self) -> KeplerianBuilder
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for KeplerianBuilder
impl Debug for KeplerianBuilder
Source§impl Default for KeplerianBuilder
impl Default for KeplerianBuilder
Source§fn default() -> KeplerianBuilder
fn default() -> KeplerianBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for KeplerianBuilder
impl RefUnwindSafe for KeplerianBuilder
impl Send for KeplerianBuilder
impl Sync for KeplerianBuilder
impl Unpin for KeplerianBuilder
impl UnsafeUnpin for KeplerianBuilder
impl UnwindSafe for KeplerianBuilder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more