[][src]Trait micromath::vector::VectorExt

pub trait VectorExt: Vector + MulAssign<f32> {
    fn distance(self, other: Self) -> f32;
fn magnitude(self) -> f32; }

Vector geometry extensions usable on vectors whose components can be converted into f32.

Required methods

fn distance(self, other: Self) -> f32

Compute the distance between two vectors

fn magnitude(self) -> f32

Compute the magnitude of a vector

Loading content...

Implementors

impl<V, A, C> VectorExt for V where
    V: Vector<Axes = A, Component = C> + MulAssign<f32>,
    A: ArrayLength<C>,
    C: Component + Into<f32>, 
[src]

fn distance(self, other: Self) -> f32[src]

Compute the distance between two vectors

fn magnitude(self) -> f32[src]

Compute the magnitude of a vector

Loading content...