class vector :Class of two-dimensional integral vectors.int -> int ->
object
..end
This is a class used to represent two-dimensional integral vectors.
x_p
: The value to give to the first component of the vector.y_p
: The value to give to the second component of the vector.Example_ocamldoc.pair
A vector is a pair.Example_ocamldoc.representable
And is moreover representable.method x : int
method y : int
method scale : float -> unit
Invalid_scalar
When s
is an invalid scalar.s
: The scalar by which to scale the vector.method string_representation : string