Type Definition na::Vector3

source ·
pub type Vector3<T> = Matrix<T, Const<3>, Const<1>, ArrayStorage<T, 3, 1>>;
Expand description

A stack-allocated, 3-dimensional column vector.

Trait Implementations§

source§

impl<T: Scalar> AsPnt<OPoint<T, Const<3>>> for Vector3<T>

source§

fn as_pnt(&self) -> &Point3<T>

source§

impl<N: BaseNum> NumVec for Vector3<N>

§

type Field = N

source§

impl<T: Scalar> Swizzles2<T> for Vector3<T>

§

type Swizzle2 = Matrix<T, Const<2>, Const<1>, ArrayStorage<T, 2, 1>>

source§

fn xy(&self) -> Vector2<T>

source§

fn yx(&self) -> Vector2<T>

source§

impl<T: Scalar> Swizzles2Mut<T> for Vector3<T>

source§

fn set_xy(&mut self, right: &Vector2<T>)

source§

fn set_yx(&mut self, right: &Vector2<T>)

source§

impl<T: Scalar> Swizzles3<T> for Vector3<T>

§

type Swizzle3 = Matrix<T, Const<3>, Const<1>, ArrayStorage<T, 3, 1>>

source§

fn xyz(&self) -> Vector3<T>

source§

fn xzy(&self) -> Vector3<T>

source§

fn yxz(&self) -> Vector3<T>

source§

fn yzx(&self) -> Vector3<T>

source§

fn zxy(&self) -> Vector3<T>

source§

fn zyx(&self) -> Vector3<T>

source§

fn yz(&self) -> Self::Swizzle2

source§

fn xz(&self) -> Self::Swizzle2

source§

fn zy(&self) -> Self::Swizzle2

source§

fn zx(&self) -> Self::Swizzle2

source§

impl<T: Scalar> Swizzles3Mut<T> for Vector3<T>

source§

fn set_xyz(&mut self, right: &Vector3<T>)

source§

fn set_xzy(&mut self, right: &Vector3<T>)

source§

fn set_yxz(&mut self, right: &Vector3<T>)

source§

fn set_yzx(&mut self, right: &Vector3<T>)

source§

fn set_zxy(&mut self, right: &Vector3<T>)

source§

fn set_zyx(&mut self, right: &Vector3<T>)

source§

fn set_yz(&mut self, right: &Self::Swizzle2)

source§

fn set_xz(&mut self, right: &Self::Swizzle2)

source§

fn set_zy(&mut self, right: &Self::Swizzle2)

source§

fn set_zx(&mut self, right: &Self::Swizzle2)

source§

impl<T: Scalar> ToPnt<OPoint<T, Const<3>>> for Vector3<T>

source§

fn to_pnt(self) -> Point3<T>

source§

impl<N: BaseNum + RealField> FloatVec for Vector3<N>