Type Alias nalgebra::base::UnitVector3

source ·
pub type UnitVector3<T> = Unit<Matrix<T, U3, U1, ArrayStorage<T, 3, 1>>>;
Expand description

A stack-allocated, 3-dimensional unit vector.

Aliased Type§

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

Trait Implementations§

source§

impl TryFrom<DVec3> for UnitVector3<f64>

§

type Error = &'static str

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

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

Performs the conversion.
source§

impl TryFrom<Vec3> for UnitVector3<f32>

§

type Error = &'static str

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

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

Performs the conversion.
source§

impl TryFrom<Vec3A> for UnitVector3<f32>

§

type Error = &'static str

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

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

Performs the conversion.