[][src]Struct ultraviolet::transform::WIsometry3

#[repr(C)]
pub struct WIsometry3 {
    pub translation: Wec3,
    pub rotation: WRotor3,
}

An Isometry, also known as a "rigid body transformation", i.e. a rotation followed by a translation.

You may want to us this type over the corresponding type of homogeneous transformation matrix because it will be faster in most operations, especially composition and inverse.

Fields

translation: Wec3rotation: WRotor3

Methods

impl WIsometry3[src]

pub fn new(translation: Wec3, rotation: WRotor3) -> Self[src]

pub fn identity() -> Self[src]

pub fn prepend_rotation(&mut self, rotor: WRotor3)[src]

Add a rotation before this isometry.

This means the rotation will only affect the rotational part of this isometry, not the translational part.

pub fn append_rotation(&mut self, rotor: WRotor3)[src]

Add a rotation after this isometry.

This means the rotation will affect both the rotational and translational parts of this isometry, since it is being applied 'after' this isometry's translational part.

pub fn prepend_translation(&mut self, translation: Wec3)[src]

Add a translation before this isometry.

Doing so will mean that the translation being added will get transformed by this isometry's rotational part.

pub fn append_translation(&mut self, translation: Wec3)[src]

Add a translation after this isometry.

Doing so will mean that the translation being added will not transformed by this isometry's rotational part.

pub fn prepend_isometry(&mut self, other: Self)[src]

Prepend transformation by another isometry.

This means that the transformation being applied will take place before this isometry, i.e. both its translation and rotation will be rotated by this isometry's rotational part.

pub fn append_isometry(&mut self, other: Self)[src]

Append transformation by another isometry.

This means that the transformation being applied will take place after this isometry, i.e. this isometry's translation and rotation will be rotated by the other isometry's rotational part.

pub fn inverse(&mut self)[src]

pub fn inversed(self) -> Self[src]

pub fn transform_vec(&self, vec: Wec3) -> Wec3[src]

pub fn into_homogeneous_matrix(self) -> Wat4[src]

Trait Implementations

impl Clone for WIsometry3[src]

impl Copy for WIsometry3[src]

impl Default for WIsometry3[src]

impl Debug for WIsometry3[src]

impl Mul<WIsometry3> for WRotor3[src]

type Output = WIsometry3

The resulting type after applying the * operator.

impl Mul<WRotor3> for WIsometry3[src]

type Output = WIsometry3

The resulting type after applying the * operator.

impl Mul<Wec3> for WIsometry3[src]

type Output = Wec3

The resulting type after applying the * operator.

impl Mul<WIsometry3> for WIsometry3[src]

type Output = Self

The resulting type after applying the * operator.

Auto Trait Implementations

Blanket Implementations

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

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

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 = !

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<T> Borrow<T> for T where
    T: ?Sized
[src]

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

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