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", so this trait is not object safe.

Implementors§

Source§

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