v2025.6.2
All Bundles

Point

Defines a two dimensional point

Operations

GetX

Get x

method : public : GetX() ~ Int

Return

TypeDescription
Intx position

GetY

Get y

method : public : GetY() ~ Int

Return

TypeDescription
Inty position

New

Constructor

New(x:Int, y:Int)

Parameters

NameTypeDescription
xIntx position
yInty position

New

Constructor set x and y to 0

New()

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