pub struct FArray<F: Float, const D: usize> { /* fields omitted */ }
Expand description
The FArray 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.
The resulting type after applying the +
operator.
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.
The resulting type after applying the /
operator.
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.
The resulting type after applying the *
operator.
The resulting type after applying the -
operator.
Return true if the matrix is zer
Return a transpose matrix
Calculate the determinant of the matrix
Apply the matrix to a vector to transform it
Return true if the matrix is zer
Return a transpose matrix
Calculate the determinant of the matrix
Apply the matrix to a vector to transform it
Return true if the matrix is zer
Return a transpose matrix
Calculate the determinant of the matrix
Apply the matrix to a vector to transform it
The resulting type after applying the -
operator.
The resulting type after applying the -
operator.
Create a vector from an array of Float
Create a vector whose elements are all zero
Return true if the vector is all zeros
Set the vector to be all zeros
Create a linear combination of this Vector and another using parameter t
from zero to one
Sum all of the components of the vector
Return the dot product of two vectors
Return the square of the length of the vector
Return the length of the vector
Return the square of the distance between this vector and another
Return the distance between this vector and another
Normalize the vector; if its length is close to zero, then set it to be zero
Rotate a vector within a plane around a
pivot point by the specified angle Read more
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.