module Vector2d:sig
..end
typet =
IntAGeom.vector2d
val of_points : IntAGeom.Point2d.t -> IntAGeom.Point2d.t -> t
Vector2d.of_points a b
returns the vector ab
from a
to b
.val add : t -> t -> t
a + b
val sub : t -> t -> t
a - b
val mul : t -> int -> t
v * k
val div : t -> int -> t
v / k
val dot : t -> t -> int
val length : t -> int
val normalise : t -> t
module Infix:sig
..end