v2026.6.4
All Bundles
Bundle SDL2 multimedia library for 2D graphics, input handling, audio playback, and window management. Core types: Window, Renderer, Texture, Surface, Event, and Mixer. Compile with -lib sdl2.

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

Constructor

New(x:Int, y:Int)

Parameters

NameTypeDescription
xIntx position
yInty position

New # constructor

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