Trait rapier3d::utils::WBasis [−][src]
pub trait WBasis: Sized {
type Basis;
fn orthonormal_basis(self) -> Self::Basis;
fn orthonormal_vector(self) -> Self;
}
Expand description
Trait to compute the orthonormal basis of a vector.
Associated Types
Required methods
fn orthonormal_basis(self) -> Self::Basis
fn orthonormal_basis(self) -> Self::Basis
Computes the vectors which, when combined with self
, form an orthonormal basis.
fn 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).