pub struct Projector { /* private fields */ }Implementations§
Source§impl Projector
impl Projector
pub fn new( from: SpatialReferenceIdentifier, to: SpatialReferenceIdentifier, ) -> Result<Self, Error>
pub fn convert(&self, point: Coordinate3) -> Result<Coordinate3, Error>
pub fn convert_point(&self, point: Point3<f64>) -> Result<Point3<f64>, Error>
pub fn convert_points( &self, points: Vec<Point3<f64>>, ) -> Result<Vec<Point3<f64>>, Error>
pub fn convert_isometry( &self, isometry: Isometry3<f64>, ) -> Result<Isometry3<f64>, Error>
Trait Implementations§
Auto Trait Implementations§
impl !Send for Projector
impl !Sync for Projector
impl Freeze for Projector
impl RefUnwindSafe for Projector
impl Unpin for Projector
impl UnsafeUnpin for Projector
impl UnwindSafe for Projector
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<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.