Module AGeom.Point2d

module Point2d: sig .. end

type t = AGeom.point2d 
(x, y)
val of_point3d : AGeom.point3d -> t
val distance : t -> t -> float
Distance between two points
val midpoint : t -> t -> t
Point2d.midpoint a b returns the middle point of the line segment ab (wp)
val dot : t -> t -> float
Dot product on the Wiki
val rand : t -> t -> t
Point2d.rand a b returns a point with coords between those of a and b
val srand : Random.State.t -> t -> t -> t
val to_string : t -> string
val of_string : string -> t
module Infix: sig .. end