Utilities operating on Vector3 objects. All methods are static and do not modify the input objects.

Constructors

Methods

  • magnitude

    The magnitude of a vector

    Parameters

    Returns number

  • scale

    Multiple all entries in a vector by a single scalar value producing a new vector

    Parameters

    Returns Vector3

  • toString

    Create a string representation of a vector3

    Parameters

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

    Returns string