Type Definition nalgebra::geometry::Point3

source ·
pub type Point3<T> = Point<T, 3>;
Expand description

A statically sized 3-dimensional column point.

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

Implementations§

source§

impl<T> Point3<T>

source

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

Initializes this point from its components.

Example
let p = Point3::new(1.0, 2.0, 3.0);
assert!(p.x == 1.0 && p.y == 2.0 && p.z == 3.0);