Type Definition na::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.

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>

§

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

source§

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

source§

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

§

type Field = N

§

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>

§

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>

§

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>