pub struct ECEFState {
pub epoch: DateTime<Utc>,
pub position: Vector3,
pub velocity: Vector3,
}Expand description
State vector in Earth-Centered Earth-Fixed (ECEF) reference frame.
ECEF is a rotating reference frame fixed to the Earth with:
- Origin at Earth’s center of mass
- X-axis pointing toward the intersection of the prime meridian and equator
- Z-axis pointing toward the North Pole
- Y-axis completing the right-handed system (90° East longitude)
Position is in kilometers and velocity is in km/s. Note: Velocity in ECEF includes the Earth’s rotation.
Fields§
§epoch: DateTime<Utc>UTC epoch of this state
position: Vector3Position vector in km
velocity: Vector3Velocity vector in km/s
Implementations§
Source§impl ECEFState
impl ECEFState
Sourcepub fn new(epoch: DateTime<Utc>, position: Vector3, velocity: Vector3) -> Self
pub fn new(epoch: DateTime<Utc>, position: Vector3, velocity: Vector3) -> Self
Create a new ECEF state.
Sourcepub fn from_tuples(
epoch: DateTime<Utc>,
position: (f64, f64, f64),
velocity: (f64, f64, f64),
) -> Self
pub fn from_tuples( epoch: DateTime<Utc>, position: (f64, f64, f64), velocity: (f64, f64, f64), ) -> Self
Create from position and velocity tuples.
Sourcepub fn to_geodetic(&self) -> GeodeticState
pub fn to_geodetic(&self) -> GeodeticState
Convert to geodetic coordinates.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ECEFState
impl RefUnwindSafe for ECEFState
impl Send for ECEFState
impl Sync for ECEFState
impl Unpin for ECEFState
impl UnwindSafe for ECEFState
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