Clpr.PathD
Rectangular clipping, simplification, and other transformations on sequences of vertices (float) defining a single contour (open or closed path).
val make : unit -> t
val reserve : t -> int -> unit
reserve t n
Reserves memory for up to n
points in the path vector t
.
val of_tups : (float * float) list -> t
val length : t -> int
val rect_clip : ?precision:int -> ?closed:bool -> t -> {rectd}1 -> {pathsd}3
val strip_duplicates : ?closed:bool -> t -> unit
val area : t -> float
val bounds : t -> {rectd}1
val is_positive : t -> bool