pub struct QuatT<T: Real + NumAssign + Default + Clone + PartialEq>(/* private fields */);
Expand description
quaternion for translation
Implementations§
Source§impl<T: Real + Default + NumAssign> QuatT<T>
impl<T: Real + Default + NumAssign> QuatT<T>
pub fn init(x: T, y: T, z: T, w: T) -> Self
pub fn lerp(start: Quat<T>, end: Quat<T>, t: T) -> QuatT<T>
pub fn slerp(start: Quat<T>, end: Quat<T>, t: T) -> QuatT<T>
pub fn add(&self, other: &Self) -> Self
pub fn minus(&self, other: &Self) -> Self
pub fn mul(&self, other: &Self) -> Self
pub fn dot(&self, other: &Self) -> T
pub fn x(&self) -> T
pub fn y(&self) -> T
pub fn z(&self) -> T
pub fn w(&self) -> T
pub fn x_mut(&mut self) -> &mut T
pub fn y_mut(&mut self) -> &mut T
pub fn z_mut(&mut self) -> &mut T
pub fn w_mut(&mut self) -> &mut T
pub fn norm_squared(&self) -> T
pub fn norm(&self) -> T
pub fn normalize(&self) -> Self
pub fn normalized(&mut self)
pub fn ln(&self) -> Self
pub fn pow(&self, t: T) -> Self
pub fn negate(&self) -> Self
pub fn conjugate(&self) -> Self
pub fn scale(&self, s: T) -> Self
pub fn scaled(&mut self, s: T)
pub fn inverse(&self) -> Self
pub fn init_from_translation(trans: Matrix<T, 3, 1>) -> Self
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for QuatT<T>where
T: Freeze,
impl<T> RefUnwindSafe for QuatT<T>where
T: RefUnwindSafe,
impl<T> Send for QuatT<T>where
T: Send,
impl<T> Sync for QuatT<T>where
T: Sync,
impl<T> Unpin for QuatT<T>where
T: Unpin,
impl<T> UnwindSafe for QuatT<T>where
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more