Trait nalgebra::base::Normed [−][src]
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); }
Trait implemented by entities scan be be normalized and put in an Unit
struct.
Associated Types
type Norm: SimdRealField
[src]
The type of the norm.
Required methods
fn norm(&self) -> Self::Norm
[src]
Computes the norm.
fn norm_squared(&self) -> Self::Norm
[src]
Computes the squared norm.
fn scale_mut(&mut self, n: Self::Norm)
[src]
Multiply self
by n.
fn unscale_mut(&mut self, n: Self::Norm)
[src]
Divides self
by n.
Implementors
impl<T: SimdComplexField, R: Dim, C: Dim> Normed for OMatrix<T, R, C> where
DefaultAllocator: Allocator<T, R, C>,
[src]
impl<T: SimdComplexField, R: Dim, C: Dim> Normed for OMatrix<T, R, C> where
DefaultAllocator: Allocator<T, R, C>,
[src]type Norm = T::SimdRealField
fn norm(&self) -> T::SimdRealField
[src]
fn norm_squared(&self) -> T::SimdRealField
[src]
fn scale_mut(&mut self, n: Self::Norm)
[src]
fn unscale_mut(&mut self, n: Self::Norm)
[src]
impl<T: SimdRealField> Normed for DualQuaternion<T>
[src]
impl<T: SimdRealField> Normed for DualQuaternion<T>
[src]type Norm = T::SimdRealField
fn norm(&self) -> T::SimdRealField
[src]
fn norm_squared(&self) -> T::SimdRealField
[src]
fn scale_mut(&mut self, n: Self::Norm)
[src]
fn unscale_mut(&mut self, n: Self::Norm)
[src]
impl<T: SimdRealField> Normed for Quaternion<T>
[src]
impl<T: SimdRealField> Normed for Quaternion<T>
[src]type Norm = T::SimdRealField
fn norm(&self) -> T::SimdRealField
[src]
fn norm_squared(&self) -> T::SimdRealField
[src]
fn scale_mut(&mut self, n: Self::Norm)
[src]
fn unscale_mut(&mut self, n: Self::Norm)
[src]
impl<T: SimdRealField> Normed for Complex<T>
[src]
impl<T: SimdRealField> Normed for Complex<T>
[src]