Point3

Type Alias Point3 

Source
pub type Point3<T> = OPoint<T, Const<3>>;
Expand description

A statically sized 3-dimensional column point.

Because this is an alias, not all its methods are listed here. See the Point type too.

Aliased Type§

#[repr(C)]
pub struct Point3<T> { pub coords: Matrix<T, Const<3>, Const<1>, <DefaultAllocator as Allocator<T, Const<3>>>::Buffer>, }

Fields§

§coords: Matrix<T, Const<3>, Const<1>, <DefaultAllocator as Allocator<T, Const<3>>>::Buffer>

The coordinates of this point, i.e., the shift from the origin.

Trait Implementations§

Source§

impl<T: Scalar> AsVec<Matrix<T, Const<3>, Const<1>, ArrayStorage<T, 3, 1>>> for Point3<T>

Source§

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

Source§

impl<N: BaseNum + RealField> FloatPnt for Point3<N>

Source§

fn origin() -> Self

Source§

fn distance(&self, b: &Self) -> <Self as NumPnt>::Field

Source§

fn distance_squared(&self, b: &Self) -> <Self as NumPnt>::Field

Source§

impl<T: Scalar> JoinPnt<T, T> for Point3<T>

Source§

type Output = OPoint<T, Const<4>>

Source§

fn join(self, v: T) -> Point4<T>

Source§

impl<N: BaseNum> NumPnt for Point3<N>

Source§

type Field = N

Source§

type Coordinates = Matrix<N, Const<3>, Const<1>, ArrayStorage<N, 3, 1>>

Source§

fn coordinates(&self) -> Self::Coordinates

Source§

fn from_coordiantes(coords: Self::Coordinates) -> Self

Source§

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

Source§

type Swizzle2 = OPoint<T, Const<2>>

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

type Swizzle3 = OPoint<T, Const<3>>

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

fn zyx(&self) -> Point3<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 Point3<T>

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

fn set_zyx(&mut self, right: &Point3<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> ToVec<Matrix<T, Const<3>, Const<1>, ArrayStorage<T, 3, 1>>> for Point3<T>

Source§

fn to_vec(self) -> Vector3<T>