pub trait SimdBasis: Sized {
type Basis;
// Required methods
fn orthonormal_basis(self) -> Self::Basis;
fn orthonormal_vector(self) -> Self;
}
Expand description
Trait to compute the orthonormal basis of a vector.
Required Associated Types§
Required Methods§
sourcefn orthonormal_basis(self) -> Self::Basis
fn orthonormal_basis(self) -> Self::Basis
Computes the vectors which, when combined with self
, form an orthonormal basis.
sourcefn orthonormal_vector(self) -> Self
fn orthonormal_vector(self) -> Self
Computes a vector orthogonal to self
with a unit length (if self
has a unit length).
Object Safety§
This trait is not object safe.