pub struct Ecef {
pub x: f32,
pub y: f32,
pub z: f32,
}Expand description
Earth-Centered Earth-Fixed (ECEF) Cartesian coordinate in meters.
Fields§
§x: f32X coordinate in meters.
y: f32Y coordinate in meters.
z: f32Z coordinate in meters.
Implementations§
Source§impl Ecef
impl Ecef
Sourcepub fn from_latlon(coord: LatLon) -> Self
pub fn from_latlon(coord: LatLon) -> Self
Converts a geographic coordinate to ECEF Cartesian coordinates.
Sourcepub fn distance(&self, other: &Ecef) -> f32
pub fn distance(&self, other: &Ecef) -> f32
Returns the Euclidean distance to another ECEF point in meters.
Sourcepub fn elevation_from(&self, station: LatLon) -> f32
pub fn elevation_from(&self, station: LatLon) -> f32
Returns the elevation angle (in degrees) from a ground
station at station to this ECEF point (a satellite).
Positive means above the local horizon, negative means below. A satellite is visible when elevation exceeds a minimum (typically 5-10°).
Trait Implementations§
impl Copy for Ecef
impl StructuralPartialEq for Ecef
Auto Trait Implementations§
impl Freeze for Ecef
impl RefUnwindSafe for Ecef
impl Send for Ecef
impl Sync for Ecef
impl Unpin for Ecef
impl UnsafeUnpin for Ecef
impl UnwindSafe for Ecef
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