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

Hierarchy

  • Vector2Builder

Implements

Constructors

Properties

x y

Methods

Constructors

Properties

x: number

Remarks

X component of the two-dimensional vector.

y: number

Remarks

Y component of the two-dimensional vector.

Methods

  • Parameters

    • Optional options: {
          decimals?: number;
          delimiter?: string;
      }
      Optional
      • Optional decimals?: number
      • Optional delimiter?: string

    Returns string