Type Definition lowdim::Point4d[][src]

pub type Point4d<S = i64> = Point<S, Vec4d<S>>;
Expand description

A 4d point.

Implementations

Creates a new point with the given coordinates.

Returns the x coordinate of the point.

Examples
let p = p4d(2, 3, -1, 4);
assert_eq!(2, p.x());

Returns the y coordinate of the point.

Examples
let p = p4d(2, 3, -1, 4);
assert_eq!(3, p.y());

Returns the z coordinate of the point.

Examples
let p = p4d(2, 3, -1, 4);
assert_eq!(-1, p.z());

Returns the w coordinate of the point.

Examples
let p = p4d(2, 3, -1, 4);
assert_eq!(4, p.w());