mod private
{
use crate::*;
use vector::{ normalized, mag, mag2, min, max, dot };
impl< E : MatEl + NdFloat, const LEN : usize > Vector< E, LEN >
{
pub fn normalize( self ) -> Self
{
normalized( &self )
}
pub fn mag( &self ) -> E
{
mag( self )
}
pub fn mag2( &self ) -> E
{
mag2( self )
}
pub fn min( self, rhs : Self ) -> Self
{
min( &self, &rhs )
}
pub fn max( self, rhs : Self ) -> Self
{
max( &self, &rhs )
}
pub fn distance( &self, rhs : &Self ) -> E
{
( rhs - self ).mag()
}
pub fn distance_squared( &self, rhs : &Self ) -> E
{
( rhs - self ).mag2()
}
pub fn dot( &self, rhs : &Self ) -> E
{
dot( self, rhs )
}
}
}
crate::mod_interface!
{
reuse ::mdmath_core::vector::arithmetics;
}