Class Example_ocamldoc.point


class point : int -> int -> object .. end
Class of two-dimensional integral points.

This is a class used to represent two-dimensional integral points.
Inherits


method x : int
Get the abscissa of the point.
Returns The abscissa of the point.
method y : int
Get the ordinate of the point.
Returns The ordinate of the point.
method move : vector -> unit
Move the point by a vector.
v : The vector by which to move the point.
method string_representation : string
Get a string representation of the point.
Returns A string representation of the point.