Type Alias nalgebra::geometry::Point1

source ·
pub type Point1<T> = Point<T, 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§

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.

Implementations§

source§

impl<T: Scalar> Point1<T>

§Construction from individual components

source

pub const fn new(x: T) -> Self

Initializes this point from its components.

§Example
let p = Point1::new(1.0);
assert_eq!(p.x, 1.0);