manual
libraries
contrib
on this page
Points of the plane.
type t
The type for points. Coordinates are any floats; a non-finite coordinate is meaningful only where a function says so, as in a path's gaps.
val v : float -> float -> t
v x y is the point (x, y).
v x y
(x, y)
val x : t -> float
x p is the x coordinate of p.
x p
p
val y : t -> float
y p is the y coordinate of p.
y p
val transform : Affine.t -> t -> t
transform m p is the image of p under m.
transform m p
m
val equal : t -> t -> bool
equal p q is true iff p and q have equal coordinates.
equal p q
true
q
val compare : t -> t -> int
compare p q orders points by x, then by y.
compare p q
val pp : Stdlib.Format.formatter -> t -> unit
pp ppf p formats p as (x, y) for debugging.
pp ppf p