struct Espresso::Position
- Espresso::Position
- Struct
- Value
- Object
Overview
Two-dimensional position of an object. Contains an x and y-coordinate represented as 32-bit integers.
Defined in:
espresso/position.crConstructors
-
.new(x : Int32, y : Int32)
Creates the position with initial values.
Instance Method Summary
-
#to_s(io)
Creates a string representation of the position.
-
#x : Int32
Distance along the x-axis.
-
#y : Int32
Distance along the y-axis.