[−][src]Struct ultraviolet::transform::Isometry3x4
An Isometry, aka a "rigid body transformation".
Defined as the combination of a rotation and then 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: Vec3x4
rotation: Rotor3x4
Implementations
impl Isometry3x4
[src]
pub const fn new(translation: Vec3x4, rotation: Rotor3x4) -> Self
[src]
pub fn identity() -> Self
[src]
pub fn prepend_rotation(&mut self, rotor: Rotor3x4)
[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: Rotor3x4)
[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: Vec3x4)
[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: Vec3x4)
[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: Vec3x4) -> Vec3x4
[src]
pub fn into_homogeneous_matrix(self) -> Mat4x4
[src]
Trait Implementations
impl Clone for Isometry3x4
[src]
fn clone(&self) -> Isometry3x4
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for Isometry3x4
[src]
impl Debug for Isometry3x4
[src]
impl Default for Isometry3x4
[src]
impl Mul<Isometry3x4> for Rotor3x4
[src]
type Output = Isometry3x4
The resulting type after applying the *
operator.
fn mul(self, iso: Isometry3x4) -> Isometry3x4
[src]
impl Mul<Isometry3x4> for Isometry3x4
[src]
type Output = Self
The resulting type after applying the *
operator.
fn mul(self, base: Isometry3x4) -> Isometry3x4
[src]
impl Mul<Rotor3x4> for Isometry3x4
[src]
type Output = Isometry3x4
The resulting type after applying the *
operator.
fn mul(self, rotor: Rotor3x4) -> Isometry3x4
[src]
impl Mul<Vec3x4> for Isometry3x4
[src]
Auto Trait Implementations
impl RefUnwindSafe for Isometry3x4
impl Send for Isometry3x4
impl Sync for Isometry3x4
impl Unpin for Isometry3x4
impl UnwindSafe for Isometry3x4
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,