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

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.