Point4 in nalgebra::geometry - Rust
Description: A statically sized 4-dimensional column point.
Keywords: rust, rustlang, rust-lang, Point4

# Type Definition nalgebra::geometry::Point4

source ·

    pub type Point4<T> = Point<T, 4>;

Expand description

A statically sized 4-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> Point4<T>

source

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

Initializes this point from its components.

##### Example

    let p = Point4::new(1.0, 2.0, 3.0, 4.0);
    assert!(p.x == 1.0 && p.y == 2.0 && p.z == 3.0 && p.w == 4.0);