Trait heron::rapier_plugin::rapier::parry::na::Normed [−][src]
pub trait Normed { type Norm: SimdRealField; pub fn norm(&self) -> Self::Norm; pub fn norm_squared(&self) -> Self::Norm; pub fn scale_mut(&mut self, n: Self::Norm); pub 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
pub fn norm(&self) -> Self::Norm
[src]
Computes the norm.
pub fn norm_squared(&self) -> Self::Norm
[src]
Computes the squared norm.
pub fn scale_mut(&mut self, n: Self::Norm)
[src]
Multiply self
by n.
pub fn unscale_mut(&mut self, n: Self::Norm)
[src]
Divides self
by n.
Implementors
impl<T> Normed for Complex<T> where
T: SimdRealField,
[src]
T: SimdRealField,
type Norm = <T as SimdComplexField>::SimdRealField
pub fn norm(&self) -> <T as SimdComplexField>::SimdRealField
[src]
pub fn norm_squared(&self) -> <T as SimdComplexField>::SimdRealField
[src]
pub fn scale_mut(&mut self, n: <Complex<T> as Normed>::Norm)
[src]
pub fn unscale_mut(&mut self, n: <Complex<T> as Normed>::Norm)
[src]
impl<T> Normed for DualQuaternion<T> where
T: SimdRealField,
[src]
T: SimdRealField,
type Norm = <T as SimdComplexField>::SimdRealField
pub fn norm(&self) -> <T as SimdComplexField>::SimdRealField
[src]
pub fn norm_squared(&self) -> <T as SimdComplexField>::SimdRealField
[src]
pub fn scale_mut(&mut self, n: <DualQuaternion<T> as Normed>::Norm)
[src]
pub fn unscale_mut(&mut self, n: <DualQuaternion<T> as Normed>::Norm)
[src]
impl<T> Normed for Quaternion<T> where
T: SimdRealField,
[src]
T: SimdRealField,
type Norm = <T as SimdComplexField>::SimdRealField
pub fn norm(&self) -> <T as SimdComplexField>::SimdRealField
[src]
pub fn norm_squared(&self) -> <T as SimdComplexField>::SimdRealField
[src]
pub fn scale_mut(&mut self, n: <Quaternion<T> as Normed>::Norm)
[src]
pub fn unscale_mut(&mut self, n: <Quaternion<T> as Normed>::Norm)
[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]
C: Dim,
T: SimdComplexField,
R: Dim,
DefaultAllocator: Allocator<T, R, C>,
type Norm = <T as SimdComplexField>::SimdRealField
pub fn norm(&self) -> <T as SimdComplexField>::SimdRealField
[src]
pub fn norm_squared(&self) -> <T as SimdComplexField>::SimdRealField
[src]
pub fn scale_mut(
&mut self,
n: <Matrix<T, R, C, <DefaultAllocator as Allocator<T, R, C>>::Buffer> as Normed>::Norm
)
[src]
&mut self,
n: <Matrix<T, R, C, <DefaultAllocator as Allocator<T, R, C>>::Buffer> as Normed>::Norm
)
pub fn unscale_mut(
&mut self,
n: <Matrix<T, R, C, <DefaultAllocator as Allocator<T, R, C>>::Buffer> as Normed>::Norm
)
[src]
&mut self,
n: <Matrix<T, R, C, <DefaultAllocator as Allocator<T, R, C>>::Buffer> as Normed>::Norm
)