nalgebra::base

Type Alias UnitVector4

Source
pub type UnitVector4<T> = Unit<Matrix<T, U4, U1, ArrayStorage<T, 4, 1>>>;
Expand description

A stack-allocated, 4-dimensional unit vector.

Aliased Type§

struct UnitVector4<T> { /* private fields */ }

Trait Implementations§

Source§

impl TryFrom<DVec4> for UnitVector4<f64>

Source§

type Error = &'static str

The type returned in the event of a conversion error.
Source§

fn try_from(e: DVec4) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Vec4> for UnitVector4<f32>

Source§

type Error = &'static str

The type returned in the event of a conversion error.
Source§

fn try_from(e: Vec4) -> Result<Self, Self::Error>

Performs the conversion.