Struct sgp4_rs::TwoLineElement
source · pub struct TwoLineElement { /* private fields */ }
Expand description
A parsed, valid Two Line Element data set which can be used for orbital propagation.
Internally this uses SGP4’s own structure representation. Various fields which are useful for
analysis or simulation are exposed via methods like raan()
/set_raan()
which allow access to the values and direct modification of the underlying orbital element set
in a type-safe manner. The uom
crate provides dimensional analysis to help avoid
unit-of-measure errors which can otherwise be quite difficult to detect.
Implementations§
source§impl TwoLineElement
impl TwoLineElement
sourcepub fn new(line1: &str, line2: &str) -> Result<TwoLineElement, Error>
pub fn new(line1: &str, line2: &str) -> Result<TwoLineElement, Error>
Create a validated TwoLineElement from a string.
sourcepub fn from_lines(combined_lines: &str) -> Result<TwoLineElement, Error>
pub fn from_lines(combined_lines: &str) -> Result<TwoLineElement, Error>
Create a TwoLineElement from a string containing both lines, and optionally a header line.
pub fn mean_motion(&self) -> AngularVelocity
sourcepub fn propagate_to(&self, t: DateTime<Utc>) -> Result<StateVector, Error>
pub fn propagate_to(&self, t: DateTime<Utc>) -> Result<StateVector, Error>
Propagate a TwoLineElement to the given time to obtain a state vector for the object.
Trait Implementations§
source§impl Clone for TwoLineElement
impl Clone for TwoLineElement
source§fn clone(&self) -> TwoLineElement
fn clone(&self) -> TwoLineElement
Returns a copy 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 moreAuto Trait Implementations§
impl RefUnwindSafe for TwoLineElement
impl Send for TwoLineElement
impl Sync for TwoLineElement
impl Unpin for TwoLineElement
impl UnwindSafe for TwoLineElement
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