struct Espresso::Coordinates

Overview

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

Defined in:

espresso/coordinates.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(x : Float64, y : Float64) #

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 : Float64 #

Distance along the x-axis.


[View source]
def y : Float64 #

Distance along the y-axis.


[View source]