[][src]Trait nova_math::traits::LengthSquared

pub trait LengthSquared {
    type Output;
    fn length_squared(&self) -> Self::Output;
}

This type abstracts a vector or other object that can represents a length. Get's the square of the length as this can often skip an expensive square root calculation.

Associated Types

type Output

Loading content...

Required methods

fn length_squared(&self) -> Self::Output

Loading content...

Implementors

impl<T: Real> LengthSquared for TVec2<T>[src]

type Output = T

impl<T: Real> LengthSquared for TVec3<T>[src]

type Output = T

impl<T: Real> LengthSquared for TVec4<T>[src]

type Output = T

Loading content...