pub enum DatumParams {
Param3(f64, f64, f64),
Param7(f64, f64, f64, f64, f64, f64, f64),
}Expand description
Datum Parameters can be either 3 or 7
Variants§
Param3(f64, f64, f64)
3 parameter datum (translate-x, translate-y, translate-z)
Param7(f64, f64, f64, f64, f64, f64, f64)
7 parameter datum (translate-x, translate-y, translate-z, rotate-x, rotate-y, rotate-z, scale)
Implementations§
Source§impl DatumParams
impl DatumParams
Sourcepub fn from_vec(v: Vec<f64>) -> DatumParams
pub fn from_vec(v: Vec<f64>) -> DatumParams
Given a vector of datum parameters, returns a DatumParams
Sourcepub fn to_wgs84<P: TransformCoordinates>(&self, p: &mut P)
pub fn to_wgs84<P: TransformCoordinates>(&self, p: &mut P)
Geocentric to WGS84 pj_geocentic_to_wgs84( p ) p = point to transform in geocentric coordinates (x,y,z) point object, nothing fancy, just allows values to be passed back and forth by reference rather than by value. Other point classes may be used as long as they have x and y properties, which will get modified in the transform method.
Sourcepub fn from_wgs84<P: TransformCoordinates>(&self, p: &mut P)
pub fn from_wgs84<P: TransformCoordinates>(&self, p: &mut P)
Geocentric from WGS84 pj_geocentic_from_wgs84() coordinate system definition, point to transform in geocentric coordinates (x,y,z)
Trait Implementations§
Source§impl Clone for DatumParams
impl Clone for DatumParams
Source§fn clone(&self) -> DatumParams
fn clone(&self) -> DatumParams
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DatumParams
impl Debug for DatumParams
Source§impl Default for DatumParams
impl Default for DatumParams
Source§impl PartialEq for DatumParams
impl PartialEq for DatumParams
Source§impl PartialOrd for DatumParams
impl PartialOrd for DatumParams
impl Copy for DatumParams
impl StructuralPartialEq for DatumParams
Auto Trait Implementations§
impl Freeze for DatumParams
impl RefUnwindSafe for DatumParams
impl Send for DatumParams
impl Sync for DatumParams
impl Unpin for DatumParams
impl UnwindSafe for DatumParams
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian().