Skip to main content

UnitVector

Trait UnitVector 

Source
pub trait UnitVector {
    // Required method
    fn unit(&self) -> Self;
}
Expand description

A trait to normalize structs (mostly to use on nalgebra vectors without needing nalgebra::RealField)

Required Methods§

Source

fn unit(&self) -> Self

Returns a normalized form of the input.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<F: Field + 'static> UnitVector for Vector3<F>