Trait nalgebra::Norm [] [src]

pub trait Norm<N: BaseFloat> {
    fn sqnorm(&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 sqnorm(&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