struct Espresso::Position


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

Defined in:



Instance Method Summary

Constructor Detail

def : Int32, y : Int32) #

Creates the position with initial values.

[View source]

Instance Method Detail

def to_s(io) #

Creates a string representation of the position.

[View source]
def x : Int32 #

Distance along the x-axis.

[View source]
def y : Int32 #

Distance along the y-axis.

[View source]