pub struct WorldToCamera(pub IsometryMatrix3<f64>);
Expand description
This contains a world pose, which is a pose of the world relative to the camera.
This maps WorldPoint
into CameraPoint
, changing an absolute position into
a vector relative to the camera.
Tuple Fields§
§0: IsometryMatrix3<f64>
Trait Implementations§
Source§impl AsMut<Isometry<f64, U3, Rotation<f64, U3>>> for WorldToCamera
impl AsMut<Isometry<f64, U3, Rotation<f64, U3>>> for WorldToCamera
Source§fn as_mut(&mut self) -> &mut IsometryMatrix3<f64>
fn as_mut(&mut self) -> &mut IsometryMatrix3<f64>
Converts this type into a mutable reference of the (usually inferred) input type.
Source§impl AsRef<Isometry<f64, U3, Rotation<f64, U3>>> for WorldToCamera
impl AsRef<Isometry<f64, U3, Rotation<f64, U3>>> for WorldToCamera
Source§fn as_ref(&self) -> &IsometryMatrix3<f64>
fn as_ref(&self) -> &IsometryMatrix3<f64>
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Clone for WorldToCamera
impl Clone for WorldToCamera
Source§fn clone(&self) -> WorldToCamera
fn clone(&self) -> WorldToCamera
Returns a copy of the value. Read more
1.0.0 · 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 WorldToCamera
impl Debug for WorldToCamera
Source§impl From<Isometry<f64, U3, Rotation<f64, U3>>> for WorldToCamera
impl From<Isometry<f64, U3, Rotation<f64, U3>>> for WorldToCamera
Source§fn from(original: IsometryMatrix3<f64>) -> WorldToCamera
fn from(original: IsometryMatrix3<f64>) -> WorldToCamera
Converts to this type from the input type.
Source§impl From<WorldToCamera> for IsometryMatrix3<f64>
impl From<WorldToCamera> for IsometryMatrix3<f64>
Source§fn from(original: WorldToCamera) -> Self
fn from(original: WorldToCamera) -> Self
Converts to this type from the input type.
Source§impl<P> Model<FeatureWorldMatch<P>> for WorldToCamerawhere
P: Bearing,
impl<P> Model<FeatureWorldMatch<P>> for WorldToCamerawhere
P: Bearing,
Source§fn residual(&self, data: &FeatureWorldMatch<P>) -> f64
fn residual(&self, data: &FeatureWorldMatch<P>) -> f64
Note that the residual error is returned as a 64-bit float. This allows the residual to be used for things
other than sample consensus, such as optimization problems. For sample consensus, the residual should
only be used to ensure it is within a threshold that roughly distinguishes inliers from outliers. Read more
Source§impl PartialEq for WorldToCamera
impl PartialEq for WorldToCamera
Source§impl Pose for WorldToCamera
impl Pose for WorldToCamera
type InputPoint = WorldPoint
type OutputPoint = CameraPoint
type Inverse = CameraToWorld
Source§fn isometry(self) -> IsometryMatrix3<f64>
fn isometry(self) -> IsometryMatrix3<f64>
Retrieve the isometry.
Source§fn scale(self, scale: f64) -> Self
fn scale(self, scale: f64) -> Self
Applies a scale factor to the pose (scales the translation component)
Source§fn from_parts(translation: Vector3<f64>, rotation: Rotation3<f64>) -> Self
fn from_parts(translation: Vector3<f64>, rotation: Rotation3<f64>) -> Self
Create the pose from rotation and translation.
Source§fn homogeneous(self) -> Matrix4<f64>
fn homogeneous(self) -> Matrix4<f64>
Retrieve the homogeneous matrix.
Source§fn transform_jacobians(
self,
input: Self::InputPoint,
) -> (Self::OutputPoint, Matrix4<f64>, Matrix4x6<f64>)
fn transform_jacobians( self, input: Self::InputPoint, ) -> (Self::OutputPoint, Matrix4<f64>, Matrix4x6<f64>)
Transform the given point to an output point, while also retrieving both Jacobians. Read more
Source§fn transform_jacobian_input(
self,
input: Self::InputPoint,
) -> (Self::OutputPoint, Matrix4<f64>)
fn transform_jacobian_input( self, input: Self::InputPoint, ) -> (Self::OutputPoint, Matrix4<f64>)
Transform the given point to an output point, while also retrieving the input Jacobian. Read more
Source§fn transform_jacobian_self(
self,
input: Self::InputPoint,
) -> (Self::OutputPoint, Matrix4x6<f64>)
fn transform_jacobian_self( self, input: Self::InputPoint, ) -> (Self::OutputPoint, Matrix4x6<f64>)
Transform the given point to an output point, while also retrieving the transform Jacobian. Read more
Source§fn transform(self, input: Self::InputPoint) -> Self::OutputPoint
fn transform(self, input: Self::InputPoint) -> Self::OutputPoint
Transform the given point to an output point, while also retrieving the transform Jacobian. Read more
impl Copy for WorldToCamera
impl StructuralPartialEq for WorldToCamera
Auto Trait Implementations§
impl Freeze for WorldToCamera
impl RefUnwindSafe for WorldToCamera
impl Send for WorldToCamera
impl Sync for WorldToCamera
impl Unpin for WorldToCamera
impl UnwindSafe for WorldToCamera
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.