nalgebra::geometry

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

Aliased Type§

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

Fields§

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

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

Implementations§

Source§

impl<T: Scalar> 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);

Trait Implementations§

Source§

impl From<BVec3> for Point3<bool>

Source§

fn from(e: BVec3) -> Point3<bool>

Converts to this type from the input type.
Source§

impl From<DVec3> for Point3<f64>

Source§

fn from(e: DVec3) -> Point3<f64>

Converts to this type from the input type.
Source§

impl From<IVec3> for Point3<i32>

Source§

fn from(e: IVec3) -> Point3<i32>

Converts to this type from the input type.
Source§

impl From<UVec3> for Point3<u32>

Source§

fn from(e: UVec3) -> Point3<u32>

Converts to this type from the input type.
Source§

impl From<Vec3> for Point3<f32>

Source§

fn from(e: Vec3) -> Point3<f32>

Converts to this type from the input type.
Source§

impl From<Vec3A> for Point3<f32>

Source§

fn from(e: Vec3A) -> Point3<f32>

Converts to this type from the input type.