struct

Espresso::Coordinates

Inherits Struct / Value / Object

Two-dimensional position of an object. Contains an x and y-coordinate represented as 64-bit floating-pointer numbers.

Constructors

new(x : Float64, y : Float64)

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