Trait rapier3d::utils::WBasis[][src]

pub trait WBasis: Sized {
    type Basis;
    fn orthonormal_basis(self) -> Self::Basis;
fn orthonormal_vector(self) -> Self; }

Trait to compute the orthonormal basis of a vector.

Associated Types

type Basis[src]

The type of the array of orthonormal vectors.

Loading content...

Required methods

fn orthonormal_basis(self) -> Self::Basis[src]

Computes the vectors which, when combined with self, form an orthonormal basis.

fn orthonormal_vector(self) -> Self[src]

Computes a vector orthogonal to self with a unit length (if self has a unit length).

Loading content...

Implementations on Foreign Types

impl<N: SimdRealField> WBasis for Vector2<N>[src]

impl<N: SimdRealField + WSign<N>> WBasis for Vector3<N>[src]

Loading content...

Implementors

Loading content...