pub struct Coord3D {
pub x: f64,
pub y: f64,
pub z: f64,
}Expand description
A 3D coordinate.
At the public API boundary:
- Geographic CRS: x/y are longitude/latitude in degrees
- Projected CRS: x/y are easting/northing in the CRS’s native linear unit
- without explicit vertical components,
zis ellipsoidal height and can change during a horizontal datum shift - with explicit vertical components,
zfollows their declared height semantics and units
Fields§
§x: f64§y: f64§z: f64Implementations§
Trait Implementations§
impl Copy for Coord3D
impl StructuralPartialEq for Coord3D
Source§impl Transformable3D for Coord3D
impl Transformable3D for Coord3D
fn to_coord3d(&self) -> Coord3D
fn from_coord3d(c: Coord3D) -> Self
Auto Trait Implementations§
impl Freeze for Coord3D
impl RefUnwindSafe for Coord3D
impl Send for Coord3D
impl Sync for Coord3D
impl Unpin for Coord3D
impl UnsafeUnpin for Coord3D
impl UnwindSafe for Coord3D
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