All Bundles

Point

Defines a two dimensional point

Operations

New

Constructor

New(x:Int, y:Int)
Parameters
NameTypeDescription
xIntx position
yInty position

Constructor set x and y to 0

New()

GetX

Get x

method : public : GetX() ~ Int
Return
TypeDescription
Intx position

GetY

Get y

method : public : GetY() ~ Int
Return
TypeDescription
Inty position

SetX

Set x

method : public : SetX(x:Int) ~ Nil
Parameters
NameTypeDescription
xIntx position

SetY

Set y

method : public : SetY(y:Int) ~ Nil
Parameters
NameTypeDescription
yInty position

ToString

String representation of point

method : public : ToString() ~ String
Return
TypeDescription
Stringstring representation