@minecraft/math
    Preparing search index...

    Class Vector2Builder

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

    Implements

    • Vector2
    Index

    Constructors

    Properties

    x y

    Methods

    Constructors

    • Parameters

      • vec: Vector2
      • Optionalarg: undefined

      Returns Vector2Builder

    • Parameters

      • x: number
      • y: number

      Returns Vector2Builder

    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