Trait nalgebra::Basis
[−]
[src]
pub trait Basis: Sized { fn canonical_basis<F: FnMut(Self) -> bool>(F); fn orthonormal_subspace_basis<F: FnMut(Self) -> bool>(&Self, F); fn canonical_basis_element(i: usize) -> Option<Self>; }
Traits of objects which can form a basis (typically vectors).
Required Methods
fn canonical_basis<F: FnMut(Self) -> bool>(F)
Iterates through the canonical basis of the space in which this object lives.
fn orthonormal_subspace_basis<F: FnMut(Self) -> bool>(&Self, F)
Iterates through a basis of the subspace orthogonal to self
.
fn canonical_basis_element(i: usize) -> Option<Self>
Gets the ith element of the canonical basis.
Implementors
impl<N: BaseFloat + ApproxEq<N>> Basis for Vec4<N>
impl<N: BaseFloat + ApproxEq<N>> Basis for Vec5<N>
impl<N: BaseFloat + ApproxEq<N>> Basis for Vec6<N>
impl<N> Basis for Vec0<N>
impl<N: One> Basis for Vec1<N>
impl<N: Copy + One + Zero + Neg<Output=N>> Basis for Vec2<N>
impl<N: BaseFloat> Basis for Vec3<N>