Normed in nalgebra::base - Rust
Description: Trait implemented by entities scan be be normalized and put in an `Unit` struct.
Keywords: rust, rustlang, rust-lang, Normed

# Trait nalgebra::base::Normed

source ·

    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.

## Required Associated Types§

source

#### type Norm: SimdRealField

The type of the norm.

## Required Methods§

source

#### fn norm(&self) -> Self::Norm

Computes the norm.

source

#### fn norm_squared(&self) -> Self::Norm

Computes the squared norm.

source

#### fn scale_mut(&mut self, n: Self::Norm)

Multiply `self` by n.

source

#### fn unscale_mut(&mut self, n: Self::Norm)

Divides `self` by n.

## Implementors§

source§

### impl<T: SimdComplexField, R: Dim, C: Dim> Normed for OMatrix<T, R, C>where
DefaultAllocator: Allocator<T, R, C>,

§

#### type Norm = <T as SimdComplexField>::SimdRealField

source§

### impl<T: SimdRealField> Normed for DualQuaternion<T>

§

#### type Norm = <T as SimdComplexField>::SimdRealField

source§

### impl<T: SimdRealField> Normed for Quaternion<T>

§

#### type Norm = <T as SimdComplexField>::SimdRealField

source§

### impl<T: SimdRealField> Normed for Complex<T>

§

#### type Norm = <T as SimdComplexField>::SimdRealField