pub type Point2d<S = i64> = Point<S, Vec2d<S>>;
Expand description
struct Point2d<S = i64> { /* private fields */ }
Creates a new point with the given coordinates.
Returns the x coordinate of the point.
let p = p2d(2, 3);
assert_eq!(2, p.x());
Returns the y coordinate of the point.
let p = p2d(2, 3);
assert_eq!(3, p.y());