[][src]Struct cam_geom::ExtrinsicParameters

pub struct ExtrinsicParameters<R: RealField> { /* fields omitted */ }

Defines the pose of a camera in the world coordinate system.

Methods

impl<R: RealField> ExtrinsicParameters<R>[src]

pub fn from_rotation_and_camcenter(
    rotation: UnitQuaternion<R>,
    camcenter: Point3<R>
) -> Self
[src]

Create a new instance from a rotation and a camera center.

pub fn from_pose(pose: &Isometry3<R>) -> Self[src]

Create a new instance from an nalgebra::Isometry3.

pub fn from_view(
    camcenter: &Vector3<R>,
    lookat: &Vector3<R>,
    up: &Unit<Vector3<R>>
) -> Self
[src]

Create a new instance from a camera center, a lookat vector, and an up vector.

pub fn camcenter(&self) -> &Point3<R>[src]

Return the camera center

pub fn pose(&self) -> &Isometry3<R>[src]

Return the camera pose

pub fn matrix(&self) -> &MatrixMN<R, U3, U4>[src]

Return the pose as a 3x4 matrix

pub fn rotation(&self) -> &Rotation3<R>[src]

Return the rotation part of the pose

pub fn translation(&self) -> &Point3<R>[src]

Return the translation part of the pose

pub fn forward(&self) -> Unit<Vector3<R>>[src]

Return a unit vector aligned along our look (+Z) direction.

pub fn up(&self) -> Unit<Vector3<R>>[src]

Return a unit vector aligned along our up (-Y) direction.

pub fn right(&self) -> Unit<Vector3<R>>[src]

Return a unit vector aligned along our right (+X) direction.

pub fn camera_to_world<NPTS, InStorage>(
    &self,
    cam_coords: &Points<CameraFrame, R, NPTS, InStorage>
) -> Points<WorldFrame, R, NPTS, Owned<R, NPTS, U3>> where
    NPTS: Dim,
    InStorage: Storage<R, NPTS, U3>,
    DefaultAllocator: Allocator<R, NPTS, U3>, 
[src]

Convert points in camera coordinates to world coordinates.

pub fn ray_camera_to_world<BType, NPTS, StorageCamera>(
    &self,
    camera: &RayBundle<CameraFrame, BType, R, NPTS, StorageCamera>
) -> RayBundle<WorldFrame, BType, R, NPTS, Owned<R, NPTS, U3>> where
    BType: Bundle<R>,
    NPTS: Dim,
    StorageCamera: Storage<R, NPTS, U3>,
    DefaultAllocator: Allocator<R, NPTS, U3>, 
[src]

Convert rays in camera coordinates to world coordinates.

pub fn world_to_camera<NPTS, InStorage>(
    &self,
    world: &Points<WorldFrame, R, NPTS, InStorage>
) -> Points<CameraFrame, R, NPTS, Owned<R, NPTS, U3>> where
    NPTS: Dim,
    InStorage: Storage<R, NPTS, U3>,
    DefaultAllocator: Allocator<R, NPTS, U3>, 
[src]

Convert points in world coordinates to camera coordinates.

Trait Implementations

impl<R: Clone + RealField> Clone for ExtrinsicParameters<R>[src]

impl<R: RealField> Debug for ExtrinsicParameters<R>[src]

impl<'de, R: RealField + Deserialize<'de>> Deserialize<'de> for ExtrinsicParameters<R>[src]

impl<R: PartialEq + RealField> PartialEq<ExtrinsicParameters<R>> for ExtrinsicParameters<R>[src]

impl<R: RealField> Serialize for ExtrinsicParameters<R> where
    R: Serialize
[src]

impl<R: RealField> StructuralPartialEq for ExtrinsicParameters<R>[src]

Auto Trait Implementations

impl<R> RefUnwindSafe for ExtrinsicParameters<R> where
    R: RefUnwindSafe + Scalar

impl<R> Send for ExtrinsicParameters<R> where
    R: Scalar

impl<R> Sync for ExtrinsicParameters<R> where
    R: Scalar

impl<R> Unpin for ExtrinsicParameters<R> where
    R: Scalar + Unpin

impl<R> UnwindSafe for ExtrinsicParameters<R> where
    R: Scalar + UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,