Module type Clipper.V

Signature of a 2d vector type to be used to represent points for the construction and destruction of Clipper2 path types

type n

numeric type for elements of the vector -- will be destructed (type declaration not required in user supplied module)

type t

2d vector type

val v : n -> n -> t

v x y conststructs a vector from x and y coordinates

val x : t -> n

x t obtains the x coordinate of the vector t

val y : t -> n

y t obtains the y coordinate of the vector t