Trait nyx_space::dimensions::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); }
Expand description
Trait implemented by entities scan be be normalized and put in an Unit
struct.
Associated Types
Required methods
fn norm_squared(&self) -> Self::Norm
[src]
fn norm_squared(&self) -> Self::Norm
[src]Computes the squared norm.
fn unscale_mut(&mut self, n: Self::Norm)
[src]
fn unscale_mut(&mut self, n: Self::Norm)
[src]Divides self
by n.
Implementations on Foreign Types
type Norm = <N as SimdComplexField>::SimdRealField
type Norm = <N as SimdComplexField>::SimdRealField
Implementors
impl<N, R, C> Normed for Matrix<N, R, C, <DefaultAllocator as Allocator<N, R, C>>::Buffer> where
C: Dim,
N: SimdComplexField,
R: Dim,
DefaultAllocator: Allocator<N, R, C>,
[src]
impl<N, R, C> Normed for Matrix<N, R, C, <DefaultAllocator as Allocator<N, R, C>>::Buffer> where
C: Dim,
N: SimdComplexField,
R: Dim,
DefaultAllocator: Allocator<N, R, C>,
[src]