Struct ultraviolet::transform::Isometry3x8
source · [−]Expand description
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: Vec3x8
rotation: Rotor3x8
Implementations
sourceimpl Isometry3x8
impl Isometry3x8
pub const fn new(translation: Vec3x8, rotation: Rotor3x8) -> Self
pub fn identity() -> Self
sourcepub fn prepend_rotation(&mut self, rotor: Rotor3x8)
pub fn prepend_rotation(&mut self, rotor: Rotor3x8)
Add a rotation before this isometry.
This means the rotation will only affect the rotational part of this isometry, not the translational part.
sourcepub fn append_rotation(&mut self, rotor: Rotor3x8)
pub fn append_rotation(&mut self, rotor: Rotor3x8)
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.
sourcepub fn prepend_translation(&mut self, translation: Vec3x8)
pub fn prepend_translation(&mut self, translation: Vec3x8)
Add a translation before this isometry.
Doing so will mean that the translation being added will get transformed by this isometry’s rotational part.
sourcepub fn append_translation(&mut self, translation: Vec3x8)
pub fn append_translation(&mut self, translation: Vec3x8)
Add a translation after this isometry.
Doing so will mean that the translation being added will not transformed by this isometry’s rotational part.
sourcepub fn prepend_isometry(&mut self, other: Self)
pub fn prepend_isometry(&mut self, other: Self)
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.
sourcepub fn append_isometry(&mut self, other: Self)
pub fn append_isometry(&mut self, other: Self)
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)
pub fn inversed(self) -> Self
pub fn transform_vec(&self, vec: Vec3x8) -> Vec3x8
pub fn into_homogeneous_matrix(self) -> Mat4x8
Trait Implementations
sourceimpl Add<Isometry3x8> for Isometry3x8
impl Add<Isometry3x8> for Isometry3x8
type Output = Self
type Output = Self
The resulting type after applying the +
operator.
sourcefn add(self, other: Isometry3x8) -> Isometry3x8
fn add(self, other: Isometry3x8) -> Isometry3x8
Performs the +
operation. Read more
sourceimpl Clone for Isometry3x8
impl Clone for Isometry3x8
sourcefn clone(&self) -> Isometry3x8
fn clone(&self) -> Isometry3x8
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for Isometry3x8
impl Debug for Isometry3x8
sourceimpl Default for Isometry3x8
impl Default for Isometry3x8
sourceimpl Mul<Isometry3x8> for Rotor3x8
impl Mul<Isometry3x8> for Rotor3x8
type Output = Isometry3x8
type Output = Isometry3x8
The resulting type after applying the *
operator.
sourcefn mul(self, iso: Isometry3x8) -> Isometry3x8
fn mul(self, iso: Isometry3x8) -> Isometry3x8
Performs the *
operation. Read more
sourceimpl Mul<Isometry3x8> for Isometry3x8
impl Mul<Isometry3x8> for Isometry3x8
type Output = Self
type Output = Self
The resulting type after applying the *
operator.
sourcefn mul(self, base: Isometry3x8) -> Isometry3x8
fn mul(self, base: Isometry3x8) -> Isometry3x8
Performs the *
operation. Read more
sourceimpl Mul<Rotor3x8> for Isometry3x8
impl Mul<Rotor3x8> for Isometry3x8
type Output = Isometry3x8
type Output = Isometry3x8
The resulting type after applying the *
operator.
sourcefn mul(self, rotor: Rotor3x8) -> Isometry3x8
fn mul(self, rotor: Rotor3x8) -> Isometry3x8
Performs the *
operation. Read more
sourceimpl Mul<Vec3x8> for Isometry3x8
impl Mul<Vec3x8> for Isometry3x8
sourceimpl Mul<f32x8> for Isometry3x8
impl Mul<f32x8> for Isometry3x8
sourceimpl PartialEq<Isometry3x8> for Isometry3x8
impl PartialEq<Isometry3x8> for Isometry3x8
sourcefn eq(&self, other: &Isometry3x8) -> bool
fn eq(&self, other: &Isometry3x8) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &Isometry3x8) -> bool
fn ne(&self, other: &Isometry3x8) -> bool
This method tests for !=
.
impl Copy for Isometry3x8
impl StructuralPartialEq for Isometry3x8
Auto Trait Implementations
impl RefUnwindSafe for Isometry3x8
impl Send for Isometry3x8
impl Sync for Isometry3x8
impl Unpin for Isometry3x8
impl UnwindSafe for Isometry3x8
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more