pub struct TemporalPoint3D {
pub point: Point,
pub altitude: f64,
pub timestamp: SystemTime,
}Expand description
A geographic point with an associated altitude and timestamp.
Fields§
§point: Point§altitude: f64§timestamp: SystemTimeImplementations§
Source§impl TemporalPoint3D
impl TemporalPoint3D
pub fn new(point: Point, altitude: f64, timestamp: SystemTime) -> Self
pub fn point(&self) -> &Point
pub fn altitude(&self) -> f64
pub fn timestamp(&self) -> &SystemTime
Sourcepub fn to_point_3d(&self) -> Point3d
pub fn to_point_3d(&self) -> Point3d
Convert to a 3D point.
Sourcepub fn distance_to(&self, other: &TemporalPoint3D) -> f64
pub fn distance_to(&self, other: &TemporalPoint3D) -> f64
Calculate 3D haversine distance to another temporal 3D point.
Trait Implementations§
Source§impl Clone for TemporalPoint3D
impl Clone for TemporalPoint3D
Source§fn clone(&self) -> TemporalPoint3D
fn clone(&self) -> TemporalPoint3D
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 TemporalPoint3D
impl Debug for TemporalPoint3D
Source§impl<'de> Deserialize<'de> for TemporalPoint3D
impl<'de> Deserialize<'de> for TemporalPoint3D
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for TemporalPoint3D
impl PartialEq for TemporalPoint3D
Source§impl Serialize for TemporalPoint3D
impl Serialize for TemporalPoint3D
impl StructuralPartialEq for TemporalPoint3D
Auto Trait Implementations§
impl Freeze for TemporalPoint3D
impl RefUnwindSafe for TemporalPoint3D
impl Send for TemporalPoint3D
impl Sync for TemporalPoint3D
impl Unpin for TemporalPoint3D
impl UnwindSafe for TemporalPoint3D
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more