Script API - v1.19.80
    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.

      This function can't be called in read-only mode.

    Properties

    x: number

    X component of this vector.

    This property can't be edited in read-only mode.

    y: number

    Y component of this vector.

    This property can't be edited in read-only mode.

    z: number

    Z component of this vector.

    This property can't be edited in read-only mode.

    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.

      This function can't be called in read-only mode.

    • Beta

      Returns number

      Returns the length of this vector.

      This function can't be called in read-only mode.

    • Beta

      Returns number

      Returns the squared length of this vector.

      This function can't be called in read-only mode.

    • Beta

      Returns Vector

      Returns this vector as a normalized vector.

      This function can't be called in read-only mode.