Function tuple

  • A factory function that creates either a tuple that is either a Vector or a Point if w is equal to 1 it returns a point else it will return a vector

    Returns

    A tuple that is either a Vector or a Point

    Parameters

    • x: number

      Component x

    • y: number

      Component y

    • z: number

      Component z

    • w: 0 | 1

      Component w

    Returns Ttuple

Generated using TypeDoc