Trait FloatVector

Source
pub trait FloatVector<T>: Vector<T>
where T: FloatScalar,
{ // Required methods fn length(&self) -> T; fn normalize(&self) -> Self; fn distance(l: &Self, r: &Self) -> T; }

Required Methods§

Source

fn length(&self) -> T

Source

fn normalize(&self) -> Self

Source

fn distance(l: &Self, r: &Self) -> T

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<T> FloatVector<T> for Vector2<T>
where T: FloatScalar,

Source§

impl<T> FloatVector<T> for Vector3<T>
where T: FloatScalar,

Source§

impl<T> FloatVector<T> for Vector4<T>
where T: FloatScalar,