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