Trait nalgebra::Norm
[−]
[src]
pub trait Norm<N: BaseFloat> { fn norm_squared(&self) -> N; fn normalize(&self) -> Self; fn normalize_mut(&mut self) -> N; fn norm(&self) -> N { ... } }
Traits of objects having an euclidian norm.
Required Methods
fn norm_squared(&self) -> N
Computes the squared norm of self
.
This is usually faster than computing the norm itself.
fn normalize(&self) -> Self
Gets the normalized version of a copy of v
.
fn normalize_mut(&mut self) -> N
Normalizes self
.
Provided Methods
fn norm(&self) -> N
Computes the norm of self
.
Implementors
impl<N: BaseFloat> Norm<N> for DVector<N>
impl<N: BaseFloat> Norm<N> for DVector1<N>
impl<N: BaseFloat> Norm<N> for DVector2<N>
impl<N: BaseFloat> Norm<N> for DVector3<N>
impl<N: BaseFloat> Norm<N> for DVector4<N>
impl<N: BaseFloat> Norm<N> for DVector5<N>
impl<N: BaseFloat> Norm<N> for DVector6<N>
impl<N: BaseFloat> Norm<N> for Vector1<N>
impl<N: BaseFloat> Norm<N> for Vector2<N>
impl<N: BaseFloat> Norm<N> for Vector3<N>
impl<N: BaseFloat> Norm<N> for Vector4<N>
impl<N: BaseFloat> Norm<N> for Vector5<N>
impl<N: BaseFloat> Norm<N> for Vector6<N>
impl<N: BaseFloat> Norm<N> for Quaternion<N>