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

Computes the squared norm of self.

This is usually faster than computing the norm itself.

Gets the normalized version of a copy of v.

Normalizes self.

Provided Methods

Computes the norm of self.

Implementors