Type Alias nalgebra::geometry::Point6

source ·
pub type Point6<T> = Point<T, 6>;
Expand description

A statically sized 6-dimensional column point.

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

Aliased Type§

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

Fields§

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

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

Implementations§

source§

impl<T: Scalar> Point6<T>

source

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

Initializes this point from its components.

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