Script API - v1.20.60
    Preparing search index...

    Contains a description of a vector.

    Index

    Constructors

    • Beta

      Parameters

      • x: number

        X component of the vector.

      • y: number

        Y component of the vector.

      • z: number

        Z component of the vector.

      Returns Vector

      Creates a new instance of an abstract vector.

    Properties

    x: number

    X component of this vector.

    y: number

    Y component of this vector.

    z: number

    Z component of this vector.

    back: Vector

    A constant vector that represents (0, 0, -1).

    down: Vector

    A constant vector that represents (0, -1, 0).

    forward: Vector

    A constant vector that represents (0, 0, 1).

    left: Vector

    A constant vector that represents (-1, 0, 0).

    one: Vector

    A constant vector that represents (1, 1, 1).

    right: Vector

    A constant vector that represents (1, 0, 0).

    up: Vector

    A constant vector that represents (0, 1, 0).

    zero: Vector

    A constant vector that represents (0, 0, 0).

    Methods

    • Beta

      Parameters

      • other: Vector

        Other vector to compare this vector to.

      Returns boolean

      True if the two vectors are equal.

      Compares this vector and another vector to one another.

    • Beta

      Returns number

      Returns the length of this vector.

    • Beta

      Returns number

      Returns the squared length of this vector.

    • Beta

      Returns Vector

      Returns this vector as a normalized vector.

    • Beta

      Parameters

      Returns Vector

      Returns the component-wise division of these vectors.

      This function can throw errors.