Struct sgp4_rs::StateVector
source · pub struct StateVector {
pub epoch: DateTime<Utc>,
pub position: [f64; 3],
pub velocity: [f64; 3],
pub coe: ClassicalOrbitalElements,
}
Expand description
A state vector, in the TEME-ECI coordinate frame, for an orbiting body.
To obtain the state of an object at a specific time, use the propagation functions provided by TwoLineElement.
Fields§
§epoch: DateTime<Utc>
§position: [f64; 3]
The satellite position in km.
velocity: [f64; 3]
The satellite velocity in km/s.
coe: ClassicalOrbitalElements
Implementations§
source§impl StateVector
impl StateVector
pub fn new(epoch: DateTime<Utc>, position: [f64; 3], velocity: [f64; 3]) -> Self
pub fn semilatus_rectum(&self) -> Length
pub fn semimajor_axis(&self) -> Length
pub fn inclination(&self) -> Angle
pub fn raan(&self) -> Angle
pub fn mean_anomaly(&self) -> Angle
pub fn true_anomaly(&self) -> Angle
pub fn eccentricity(&self) -> f64
pub fn longitude_of_periapsis(&self) -> Angle
pub fn true_longitude(&self) -> Angle
pub fn argument_of_perigee(&self) -> Angle
pub fn argument_of_latitude(&self) -> Angle
Trait Implementations§
source§impl Clone for StateVector
impl Clone for StateVector
source§fn clone(&self) -> StateVector
fn clone(&self) -> StateVector
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 moresource§impl Debug for StateVector
impl Debug for StateVector
source§impl From<StateVector> for ClassicalOrbitalElements
impl From<StateVector> for ClassicalOrbitalElements
source§fn from(sv: StateVector) -> Self
fn from(sv: StateVector) -> Self
Converts to this type from the input type.
impl Copy for StateVector
Auto Trait Implementations§
impl RefUnwindSafe for StateVector
impl Send for StateVector
impl Sync for StateVector
impl Unpin for StateVector
impl UnwindSafe for StateVector
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