Geometry.PointSource2-dimensional point representation.
'a t represents a 2-dimensional point with x and y coordinates.
sub a b subtracts corresponding coordinates of b from a.
mul_scalar point scalar multiplies both components of point by scalar.
div_scalar point scalar divides both components of point by scalar.
map2 f p1 p2 applies f to corresponding coordinates of p1 and p2.
get axis point retrieves the component corresponding to axis.
set axis value point returns a new point with the component corresponding to axis set to value.
to_size point converts a point to a size by mapping x -> width and y -> height.
of_size size converts a size to a point by mapping width -> x and height -> y.
compare cmp a b compares a and b lexicographically using cmp.
equal eq a b tests equality using eq for each coordinate.
to_string f point converts point to a string using f.
pp f fmt point prints point using fmt and f.