Vector2 interface

A representation of a point in a 2D space

Signature:

export interface Vector2 

Properties

PropertyModifiersTypeDescription
xreadonlynumberThe position along the x-axis in pixels
yreadonlynumberThe position along the y-axis in pixels

Vector2.x property

The position along the x-axis in pixels

Signature:

readonly x: number;

Vector2.y property

The position along the y-axis in pixels

Signature:

readonly y: number;