Type Alias nalgebra::geometry::Point5

source ·
pub type Point5<T> = Point<T, 5>;
Expand description

A statically sized 5-dimensional column point.

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

Aliased Type§

struct Point5<T> {
    pub coords: Matrix<T, Const<5>, Const<1>, <DefaultAllocator as Allocator<T, Const<5>>>::Buffer>,
}

Fields§

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

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

Implementations§

source§

impl<T: Scalar> Point5<T>

source

pub const fn new(x: T, y: T, z: T, w: T, a: T) -> Self

Initializes this point from its components.

Example
let p = Point5::new(1.0, 2.0, 3.0, 4.0, 5.0);
assert!(p.x == 1.0 && p.y == 2.0 && p.z == 3.0 && p.w == 4.0 && p.a == 5.0);