Expand description
Creates a new point with the given coordinates.
Returns the x coordinate of the point.
let p = p4d(2, 3, -1, 4);
assert_eq!(2, p.x());
Returns the y coordinate of the point.
let p = p4d(2, 3, -1, 4);
assert_eq!(3, p.y());
Returns the z coordinate of the point.
let p = p4d(2, 3, -1, 4);
assert_eq!(-1, p.z());
Returns the w coordinate of the point.
let p = p4d(2, 3, -1, 4);
assert_eq!(4, p.w());