pub struct RelativePose { /* private fields */ }Expand description
Target-camera pose expressed in the source-camera coordinate frame.
Implementations§
Source§impl RelativePose
impl RelativePose
Sourcepub fn try_new(
rotation: Mat3<f64>,
translation: Vec3<f64>,
) -> VisionResult<Self>
pub fn try_new( rotation: Mat3<f64>, translation: Vec3<f64>, ) -> VisionResult<Self>
Creates a checked proper rotation and finite non-zero translation.
Sourcepub const fn translation(self) -> Vec3<f64>
pub const fn translation(self) -> Vec3<f64>
Returns the source-to-target translation, whose scale may be arbitrary.
Trait Implementations§
Source§impl Clone for RelativePose
impl Clone for RelativePose
Source§fn clone(&self) -> RelativePose
fn clone(&self) -> RelativePose
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 RelativePose
impl Debug for RelativePose
Source§impl PartialEq for RelativePose
impl PartialEq for RelativePose
Source§fn eq(&self, other: &RelativePose) -> bool
fn eq(&self, other: &RelativePose) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for RelativePose
impl StructuralPartialEq for RelativePose
Auto Trait Implementations§
impl Freeze for RelativePose
impl RefUnwindSafe for RelativePose
impl Send for RelativePose
impl Sync for RelativePose
impl Unpin for RelativePose
impl UnsafeUnpin for RelativePose
impl UnwindSafe for RelativePose
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