pub struct QArray<F, V3, V4> where
F: Float,
V3: Vector<F, 3>,
V4: Vector<F, 4>, { /* fields omitted */ }
Expand description
The QArray is a wrapper around a D
sized array of Floats.
It provides implementations of the traits required for a Vector
trait, hence it can be used for a Vector of any size D
.
The resulting type after applying the +
operator.
impl<F, V3, V4> Add<QArray<F, V3, V4>> for QArray<F, V3, V4> where
F: Float,
V3: Vector<F, 3>,
V4: Vector<F, 4>,
The resulting type after applying the +
operator.
impl<F, V3, V4> AddAssign<QArray<F, V3, V4>> for QArray<F, V3, V4> where
F: Float,
V3: Vector<F, 3>,
V4: Vector<F, 4>,
Performs copy-assignment from source
. Read more
Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more
Formats the value using the given formatter. Read more
The resulting type after applying the /
operator.
impl<F, V3, V4> Div<QArray<F, V3, V4>> for QArray<F, V3, V4> where
F: Float,
V3: Vector<F, 3>,
V4: Vector<F, 4>,
The resulting type after applying the /
operator.
impl<F, V3, V4> DivAssign<QArray<F, V3, V4>> for QArray<F, V3, V4> where
F: Float,
V3: Vector<F, 3>,
V4: Vector<F, 4>,
The returned type after indexing.
Performs the indexing (container[index]
) operation. Read more
Performs the mutable indexing (container[index]
) operation. Read more
The resulting type after applying the *
operator.
impl<F, V3, V4> Mul<QArray<F, V3, V4>> for QArray<F, V3, V4> where
F: Float,
V3: Vector<F, 3>,
V4: Vector<F, 4>,
The resulting type after applying the *
operator.
impl<F, V3, V4> MulAssign<QArray<F, V3, V4>> for QArray<F, V3, V4> where
F: Float,
V3: Vector<F, 3>,
V4: Vector<F, 4>,
The resulting type after applying the -
operator.
impl<F, V3, V4> Quaternion<F, V3, V4> for QArray<F, V3, V4> where
F: Float,
V3: Vector<F, 3>,
V4: Vector<F, 4>,
Find the quaternion of a Matrix3 assuming it is purely a rotation
Create a quaternion from an array of Float
Break out into r, i, j, k
Create a quaternion whose elements are all zero
Set the quaternion to be all zeros
Create a linear combination of this Quaternion and another using parameter t
from zero to one
Return the dot product of two quaternions; basically used for length
Set a Matrix3 to be the rotation matrix corresponding to the unit quaternion
Set a Matrix4 to be the rotation matrix corresponding to the unit quaternion
Create the conjugate of a quaternion
Return the square of the length of the quaternion
Return the length of the quaternion
Return the square of the distance between this quaternion and another
Return the distance between this quaternion and another
Normalize the quaternion; if its length is close to zero, then set it to be zero
The resulting type after applying the -
operator.
impl<F, V3, V4> Sub<QArray<F, V3, V4>> for QArray<F, V3, V4> where
F: Float,
V3: Vector<F, 3>,
V4: Vector<F, 4>,
The resulting type after applying the -
operator.
impl<F, V3, V4> SubAssign<QArray<F, V3, V4>> for QArray<F, V3, V4> where
F: Float,
V3: Vector<F, 3>,
V4: Vector<F, 4>,
impl<T> Any for T where
T: 'static + ?Sized,
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
impl<T, U> Into<U> for T where
U: From<T>,
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
Converts the given value to a String
. Read more
The type returned in the event of a conversion error.
The type returned in the event of a conversion error.