Vector2 wrapper class which can be used as a Vector2 for APIs on @minecraft/server which require a Vector2.

Implements

Constructors

Properties

x y

Methods

Constructors

Properties

x: number

X component of the two-dimensional vector.

y: number

Y component of the two-dimensional vector.

Methods

  • Returns a string representation of an object.

    Parameters

    • Optionaloptions: { decimals?: number; delimiter?: string }

    Returns string