nalgebra::base

Type Alias 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>

Source§

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>

Source§

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>

Source§

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.