Type Definition 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.

Implementations§

source§

impl<T: Scalar> Point1<T>

source

pub fn new(x: T) -> Self

Initializes this point from its components.

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