Mlpost.PointPoints in the plane
type t = Signature.pointThe abstract type for points
The following functions create points of length 1. They are especially useful to specify directions with Path.Vec
val dir : float -> tdir f is the point at angle f on the unit circle. f shall be given in degrees
The unitary vectors pointing up, down, left and right
val up : tval down : tval left : tval right : tval origin : tval transform : Transform.t -> t -> tApply a transformation to a point
segment f p1 p2 is the point (1-f)p1 + fp2. Stated otherwise, if p1 is at 0. and p2 is at 1., return the point that lies at f
rotate_around p1 f p2 rotates p2 around p1 by an angle f in degrees
The following functions build a point at a given scale (see Num.t for scales)
val bpp : (float * float) -> tval inp : (float * float) -> tval cmp : (float * float) -> tval mmp : (float * float) -> tval ptp : (float * float) -> tSame as the previous functions but build list of points
val map_bp : (float * float) list -> t listval map_in : (float * float) list -> t listval map_cm : (float * float) list -> t listval map_mm : (float * float) list -> t listval map_pt : (float * float) list -> t listSame as p, but builds a list of points