struct Espresso::Position

Overview

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

Defined in:

espresso/position.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(x, y) #

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]