Point1

Type Alias Point1 

Source
pub type Point1<T> = OPoint<T, Const<1>>;
Expand description

A statically sized 1-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 Point1<T> { pub coords: Matrix<T, Const<1>, Const<1>, <DefaultAllocator as Allocator<T, Const<1>>>::Buffer>, }

Fields§

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

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

Trait Implementations§

Source§

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

Source§

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

Source§

impl<N: BaseNum + RealField> FloatPnt for Point1<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<N: BaseNum> NumPnt for Point1<N>

Source§

type Field = N

Source§

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

Source§

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

Source§

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

Source§

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

Source§

fn to_vec(self) -> Vector1<T>