Struct geo_nd::QArray[][src]

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.

Implementations

Trait Implementations

The resulting type after applying the + operator.

Performs the + operation. Read more

The resulting type after applying the + operator.

Performs the + operation. Read more

Performs the += operation. Read more

Performs the += operation. Read more

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Returns a copy of the value. Read more

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.

Performs the / operation. Read more

The resulting type after applying the / operator.

Performs the / operation. Read more

Performs the /= operation. Read more

Performs the /= operation. Read more

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.

Performs the * operation. Read more

The resulting type after applying the * operator.

Performs the * operation. Read more

Performs the *= operation. Read more

Performs the *= operation. Read more

The resulting type after applying the - operator.

Performs the unary - operation. Read more

Find the quaternion of a Matrix3 assuming it is purely a rotation

Create a quaternion from an array of Float Read more

Break out into r, i, j, k

Create from 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

Create a unit quaternion for a rotation of an angle about an axis

Find the axis and angle of rotation for a (non-unit) 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

Create a quaternion that maps a unit V3 of dirn to (0,0,-1) and a unit V3 of up (if perpendicular to dirn) to (0,1,0)

Apply the quaternion to a V3

Apply the quaternion to a V4

The resulting type after applying the - operator.

Performs the - operation. Read more

The resulting type after applying the - operator.

Performs the - operation. Read more

Performs the -= operation. Read more

Performs the -= operation. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

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.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.