nalgebra::geometry

Type Alias 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<Const<1>>>::Buffer<T>>,
}

Fields§

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

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);