Trait nalgebra::Absolute
[−]
[src]
pub trait Absolute<A> { fn abs(&Self) -> A; }
Trait of objects having an absolute value. This is useful if the object does not have the same type as its absolute value.
Required Methods
fn abs(&Self) -> A
Computes some absolute value of this object. Typically, this will make all component of a matrix or vector positive.
Implementors
impl<N: Absolute<N>> Absolute<Vector1<N>> for Vector1<N>
impl<N: Absolute<N>> Absolute<Vector2<N>> for Vector2<N>
impl<N: Absolute<N>> Absolute<Vector3<N>> for Vector3<N>
impl<N: Absolute<N>> Absolute<Vector4<N>> for Vector4<N>
impl<N: Absolute<N>> Absolute<Vector5<N>> for Vector5<N>
impl<N: Absolute<N>> Absolute<Vector6<N>> for Vector6<N>
impl<N: Absolute<N>> Absolute<Matrix1<N>> for Matrix1<N>
impl<N: Absolute<N>> Absolute<Matrix2<N>> for Matrix2<N>
impl<N: Absolute<N>> Absolute<Matrix3<N>> for Matrix3<N>
impl<N: Absolute<N>> Absolute<Matrix4<N>> for Matrix4<N>
impl<N: Absolute<N>> Absolute<Matrix5<N>> for Matrix5<N>
impl<N: Absolute<N>> Absolute<Matrix6<N>> for Matrix6<N>
impl<N: Absolute<N>> Absolute<Matrix2<N>> for Rotation2<N>
impl<N: Absolute<N>> Absolute<Matrix3<N>> for Rotation3<N>
impl Absolute<f32> for f32
impl Absolute<f64> for f64
impl Absolute<i8> for i8
impl Absolute<i16> for i16
impl Absolute<i32> for i32
impl Absolute<i64> for i64
impl Absolute<isize> for isize
impl Absolute<u8> for u8
impl Absolute<u16> for u16
impl Absolute<u32> for u32
impl Absolute<u64> for u64
impl Absolute<usize> for usize