struct

Espresso::Position

Inherits Struct / Value / Object

Two-dimensional position of an object. Contains an x and y-coordinate represented as 32-bit integers.

Constructors

new(x : Int32, y : Int32)

Creates the position with initial values.

Source

Instance methods

to_s(io)

Creates a string representation of the position.

Source
x

Distance along the x-axis.

Source
y

Distance along the y-axis.

Source