Struct ultraviolet::transform::Isometry3x8
source · #[repr(C)]pub struct Isometry3x8 {
pub translation: Vec3x8,
pub rotation: Rotor3x8,
}
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§
source§impl 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§
source§impl Add<Isometry3x8> for Isometry3x8
impl Add<Isometry3x8> for Isometry3x8
§type Output = Isometry3x8
type Output = Isometry3x8
+
operator.source§fn add(self, other: Isometry3x8) -> Isometry3x8
fn add(self, other: Isometry3x8) -> Isometry3x8
+
operation. Read moresource§impl Clone for Isometry3x8
impl Clone for Isometry3x8
source§fn clone(&self) -> Isometry3x8
fn clone(&self) -> Isometry3x8
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for Isometry3x8
impl Debug for Isometry3x8
source§impl Default for Isometry3x8
impl Default for Isometry3x8
source§impl Mul<Isometry3x8> for Isometry3x8
impl Mul<Isometry3x8> for Isometry3x8
§type Output = Isometry3x8
type Output = Isometry3x8
*
operator.source§fn mul(self, base: Isometry3x8) -> Isometry3x8
fn mul(self, base: Isometry3x8) -> Isometry3x8
*
operation. Read moresource§impl Mul<Isometry3x8> for Rotor3x8
impl Mul<Isometry3x8> for Rotor3x8
§type Output = Isometry3x8
type Output = Isometry3x8
*
operator.source§fn mul(self, iso: Isometry3x8) -> Isometry3x8
fn mul(self, iso: Isometry3x8) -> Isometry3x8
*
operation. Read moresource§impl Mul<Rotor3x8> for Isometry3x8
impl Mul<Rotor3x8> for Isometry3x8
§type Output = Isometry3x8
type Output = Isometry3x8
*
operator.source§impl Mul<Vec3x8> for Isometry3x8
impl Mul<Vec3x8> for Isometry3x8
source§impl Mul<f32x8> for Isometry3x8
impl Mul<f32x8> for Isometry3x8
§type Output = Isometry3x8
type Output = Isometry3x8
*
operator.source§impl PartialEq<Isometry3x8> for Isometry3x8
impl PartialEq<Isometry3x8> for Isometry3x8
source§fn eq(&self, other: &Isometry3x8) -> bool
fn eq(&self, other: &Isometry3x8) -> bool
self
and other
values to be equal, and is used
by ==
.