[−][src]Struct rs_math3d::quaternion::Quat
Fields
x: T
y: T
z: T
w: T
Implementations
impl<T: Scalar> Quat<T>
[src]
pub fn identity() -> Self
[src]
pub fn new(x: T, y: T, z: T, w: T) -> Self
[src]
pub fn dot(l: &Self, r: &Self) -> T
[src]
pub fn length(&self) -> T
[src]
pub fn conjugate(q: &Self) -> Self
[src]
pub fn normalize(q: &Self) -> Self
[src]
pub fn neg(q: &Self) -> Self
[src]
pub fn add(l: &Self, r: &Self) -> Self
[src]
pub fn sub(l: &Self, r: &Self) -> Self
[src]
pub fn mul(l: &Self, r: &Self) -> Self
[src]
pub fn mulf(l: &Self, r: T) -> Self
[src]
pub fn fmul(l: T, r: &Self) -> Self
[src]
pub fn divf(l: &Self, r: T) -> Self
[src]
pub fn fdiv(l: T, r: &Self) -> Self
[src]
pub fn inverse(q: &Self) -> Self
[src]
pub fn mat3(&self) -> Matrix3<T>
[src]
pub fn mat4(&self) -> Matrix4<T>
[src]
pub fn toAxisAngle(&self) -> (Vector3<T>, T)
[src]
pub fn ofMatrix3(m: &Matrix3<T>) -> Self
[src]
pub fn ofMatrix4(m: &Matrix4<T>) -> Self
[src]
pub fn ofAxisAngle(axis: &Vector3<T>, angle: T) -> Self
[src]
Trait Implementations
impl<T: Scalar> Add<Quat<T>> for Quat<T>
[src]
type Output = Quat<T>
The resulting type after applying the +
operator.
fn add(self, rhs: Self) -> Self
[src]
impl<T: Clone + Scalar> Clone for Quat<T>
[src]
fn clone(&self) -> Quat<T>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<T: Copy + Scalar> Copy for Quat<T>
[src]
impl<T: Debug + Scalar> Debug for Quat<T>
[src]
impl Div<Quat<f32>> for f32
[src]
type Output = Quat<f32>
The resulting type after applying the /
operator.
fn div(self, q: Quat<f32>) -> Quat<f32>
[src]
impl Div<Quat<f64>> for f64
[src]
type Output = Quat<f64>
The resulting type after applying the /
operator.
fn div(self, q: Quat<f64>) -> Quat<f64>
[src]
impl<T: Scalar> Div<T> for Quat<T>
[src]
type Output = Quat<T>
The resulting type after applying the /
operator.
fn div(self, t: T) -> Self
[src]
impl<T: Scalar> Mul<Quat<T>> for Quat<T>
[src]
type Output = Quat<T>
The resulting type after applying the *
operator.
fn mul(self, rhs: Self) -> Self
[src]
impl Mul<Quat<f32>> for f32
[src]
type Output = Quat<f32>
The resulting type after applying the *
operator.
fn mul(self, q: Quat<f32>) -> Quat<f32>
[src]
impl Mul<Quat<f64>> for f64
[src]
type Output = Quat<f64>
The resulting type after applying the *
operator.
fn mul(self, q: Quat<f64>) -> Quat<f64>
[src]
impl<T: Scalar> Mul<T> for Quat<T>
[src]
type Output = Quat<T>
The resulting type after applying the *
operator.
fn mul(self, t: T) -> Self
[src]
impl<T: Scalar> Sub<Quat<T>> for Quat<T>
[src]
Auto Trait Implementations
impl<T> Send for Quat<T> where
T: Send,
T: Send,
impl<T> Sync for Quat<T> where
T: Sync,
T: Sync,
impl<T> Unpin for Quat<T> where
T: Unpin,
T: Unpin,
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, 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>,