Module IntAGeom.Vector2d

module Vector2d: sig .. end

type t = IntAGeom.vector2d 
(x, y)
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
Dot product of two vectors
val length : t -> int
Returns the length (magnitude) of this vector.
val normalise : t -> t
Normalises this vector
module Infix: sig .. end