Defines a two dimensional point
OperationsConstructor
New(x:Int, y:Int)
Name | Type | Description |
---|---|---|
x | Int | x position |
y | Int | y position |
Constructor set x and y to 0
New()
Get x
method : public : GetX() ~ Int
Type | Description |
---|---|
Int | x position |
Get y
method : public : GetY() ~ Int
Type | Description |
---|---|
Int | y position |
Set x
method : public : SetX(x:Int) ~ Nil
Name | Type | Description |
---|---|---|
x | Int | x position |
Set y
method : public : SetY(y:Int) ~ Nil
Name | Type | Description |
---|---|---|
y | Int | y position |
String representation of point
method : public : ToString() ~ String
Type | Description |
---|---|
String | string representation |