pub type Point2d<S = i64> = Point<S, Vec2d<S>>;
A 2d point.
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());