Trait nalgebra::base::Normed

source ·
pub trait Normed {
    type Norm: SimdRealField;

    fn norm(&self) -> Self::Norm;
    fn norm_squared(&self) -> Self::Norm;
    fn scale_mut(&mut self, n: Self::Norm);
    fn unscale_mut(&mut self, n: Self::Norm);
}
Expand description

Trait implemented by entities scan be be normalized and put in an Unit struct.

Required Associated Types§

The type of the norm.

Required Methods§

Computes the norm.

Computes the squared norm.

Multiply self by n.

Divides self by n.

Implementors§