pub struct AbsolutePose { /* private fields */ }Expand description
Object-to-camera pose X_cam = R X_obj + t used by absolute orientation (PnP).
Implementations§
Source§impl AbsolutePose
impl AbsolutePose
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 translation (may be zero).
Sourcepub const fn translation(self) -> Vec3<f64>
pub const fn translation(self) -> Vec3<f64>
Returns the object-to-camera translation.
Sourcepub fn transform_point(self, point: Vec3<f64>) -> Vec3<f64>
pub fn transform_point(self, point: Vec3<f64>) -> Vec3<f64>
Transforms an object-frame point into the camera frame.
Trait Implementations§
Source§impl Clone for AbsolutePose
impl Clone for AbsolutePose
Source§fn clone(&self) -> AbsolutePose
fn clone(&self) -> AbsolutePose
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 AbsolutePose
impl Debug for AbsolutePose
Source§impl PartialEq for AbsolutePose
impl PartialEq for AbsolutePose
Source§fn eq(&self, other: &AbsolutePose) -> bool
fn eq(&self, other: &AbsolutePose) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for AbsolutePose
impl StructuralPartialEq for AbsolutePose
Auto Trait Implementations§
impl Freeze for AbsolutePose
impl RefUnwindSafe for AbsolutePose
impl Send for AbsolutePose
impl Sync for AbsolutePose
impl Unpin for AbsolutePose
impl UnsafeUnpin for AbsolutePose
impl UnwindSafe for AbsolutePose
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