Type Definition lowdim::Point3d[][src]

pub type Point3d<S = i64> = Point<S, Vec3d<S>>;
Expand description

A 3d point.

Implementations

Creates a new point with the given coordinates.

Returns the x coordinate of the point.

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

Returns the y coordinate of the point.

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

Returns the z coordinate of the point.

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