Trait FloatVector

Source
pub trait FloatVector<F>: Vector<F>
where F: Float, Self: Clone + Div<F, Output = Self> + Sub<Output = Self>,
{ // Provided methods fn length(&self) -> F { ... } fn normalize(&self) -> Self { ... } fn distance(&self, rhs: &Self) -> F { ... } }

Provided Methods§

Source

fn length(&self) -> F

Source

fn normalize(&self) -> Self

Source

fn distance(&self, rhs: &Self) -> F

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> FloatVector<F> for V2<F>
where F: Float,

Source§

impl<F> FloatVector<F> for V3<F>
where F: Float,

Source§

impl<F> FloatVector<F> for V4<F>
where F: Float,