Position class


A representation of a position in the game.

Signature:

export declare class Position 

Constructor

new Position (data: PositionData)

Constructs a new instance of the Position class.

Parameters:

ParameterTypeDescription
dataPositionData

Properties

x

The x coordinate of the position.

Type: Number


y

The y coordinate of the position.

Type: Number


Table of Contents