Trait bevy_rapier3d::prelude::nalgebra::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
type Norm: SimdRealField
[src]
type Norm: SimdRealField
[src]The type of the norm.
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.
Implementors
type Norm = <T as SimdComplexField>::SimdRealField
type Norm = <T as SimdComplexField>::SimdRealField
type Norm = <T as SimdComplexField>::SimdRealField
impl<T, R, C> Normed for Matrix<T, R, C, <DefaultAllocator as Allocator<T, R, C>>::Buffer> where
C: Dim,
T: SimdComplexField,
R: Dim,
DefaultAllocator: Allocator<T, R, C>,
[src]
impl<T, R, C> Normed for Matrix<T, R, C, <DefaultAllocator as Allocator<T, R, C>>::Buffer> where
C: Dim,
T: SimdComplexField,
R: Dim,
DefaultAllocator: Allocator<T, R, C>,
[src]type Norm = <T as SimdComplexField>::SimdRealField
pub fn scale_mut(
&mut self,
n: <Matrix<T, R, C, <DefaultAllocator as Allocator<T, R, C>>::Buffer> as Normed>::Norm
)
[src]pub fn unscale_mut(
&mut self,
n: <Matrix<T, R, C, <DefaultAllocator as Allocator<T, R, C>>::Buffer> as Normed>::Norm
)
[src]