Type Definition lowdim::Point2d[][src]

pub type Point2d<S = i64> = Point<S, Vec2d<S>>;
Expand description

A 2d point.

Implementations

Creates a new point with the given coordinates.

Returns the x coordinate of the point.

Examples
let p = p2d(2, 3);
assert_eq!(2, p.x());

Returns the y coordinate of the point.

Examples
let p = p2d(2, 3);
assert_eq!(3, p.y());