Type Definition na::Point2

source ·
pub type Point2<T> = OPoint<T, Const<2>>;
Expand description

A statically sized 2-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<2>, Const<1>, ArrayStorage<T, 2, 1>>> for Point2<T>

source§

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

source§

impl<N: BaseNum + RealField> FloatPnt for Point2<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, OPoint<T, Const<2>>> for Point2<T>

§

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

source§

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

source§

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

§

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

source§

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

source§

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

§

type Field = N

§

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

source§

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

source§

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

source§

impl<T: Scalar> Swizzles2<T> for Point2<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 Point2<T>

source§

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

source§

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

source§

impl<T: Scalar> ToVec<Matrix<T, Const<2>, Const<1>, ArrayStorage<T, 2, 1>>> for Point2<T>

source§

fn to_vec(self) -> Vector2<T>