matriz

Type Alias Vector

Source
pub type Vector<T, const DIMENSION: usize> = Matrix<T, DIMENSION, 1>;

Aliased Type§

struct Vector<T, const DIMENSION: usize>(/* private fields */);

Implementations§

Source§

impl<T: Scalar, const D: usize> Vector<T, D>

Source

pub fn len_squared(&self) -> T

Source§

impl<const D: usize> Vector<f32, D>

Source

pub fn len(&self) -> f32

Source

pub fn normalized(self) -> Self

Source§

impl<const D: usize> Vector<f64, D>

Source

pub fn len(&self) -> f64

Source

pub fn normalized(self) -> Self

Trait Implementations§

Source§

impl<T, const D: usize> From<[T; D]> for Vector<T, D>

Source§

fn from(items: [T; D]) -> Self

Converts to this type from the input type.