• Initializes a new vector.

    Parameters

    • x: number

      The x-component (defined for 2D, 3D, and 4D vectors)

    • y: number

      The y-component (defined for 2D, 3D, and 4D vectors)

    • Optional z: number

      The z-component (defined for 3D and 4D vectors)

    • Optional w: number

      The w-component (defined for 4D vectors)

    Returns ChalkboardVector

Generated using TypeDoc