pub struct CameraToWorld(pub IsometryMatrix3<f64>);
Expand description
This contains a camera pose, which is a pose of the camera relative to the world.
This transforms camera points (with depth as z
) into world coordinates.
This also tells you where the camera is located and oriented in the world.
Tuple Fields§
§0: IsometryMatrix3<f64>
Trait Implementations§
Source§impl AsMut<Isometry<f64, U3, Rotation<f64, U3>>> for CameraToWorld
impl AsMut<Isometry<f64, U3, Rotation<f64, U3>>> for CameraToWorld
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 CameraToWorld
impl AsRef<Isometry<f64, U3, Rotation<f64, U3>>> for CameraToWorld
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 CameraToWorld
impl Clone for CameraToWorld
Source§fn clone(&self) -> CameraToWorld
fn clone(&self) -> CameraToWorld
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 CameraToWorld
impl Debug for CameraToWorld
Source§impl From<CameraToWorld> for IsometryMatrix3<f64>
impl From<CameraToWorld> for IsometryMatrix3<f64>
Source§fn from(original: CameraToWorld) -> Self
fn from(original: CameraToWorld) -> Self
Converts to this type from the input type.
Source§impl From<Isometry<f64, U3, Rotation<f64, U3>>> for CameraToWorld
impl From<Isometry<f64, U3, Rotation<f64, U3>>> for CameraToWorld
Source§fn from(original: IsometryMatrix3<f64>) -> CameraToWorld
fn from(original: IsometryMatrix3<f64>) -> CameraToWorld
Converts to this type from the input type.
Source§impl PartialEq for CameraToWorld
impl PartialEq for CameraToWorld
Source§impl Pose for CameraToWorld
impl Pose for CameraToWorld
type InputPoint = CameraPoint
type OutputPoint = WorldPoint
type Inverse = WorldToCamera
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 CameraToWorld
impl StructuralPartialEq for CameraToWorld
Auto Trait Implementations§
impl Freeze for CameraToWorld
impl RefUnwindSafe for CameraToWorld
impl Send for CameraToWorld
impl Sync for CameraToWorld
impl Unpin for CameraToWorld
impl UnwindSafe for CameraToWorld
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.