• Sets the values of a Vec4 Also see vec4.create and vec4.copy

    Type Parameters

    Parameters

    • x: number

      first value

    • y: number

      second value

    • z: number

      third value

    • w: number

      fourth value

    • Optional dst: T

      vector to hold result. If not passed in a new one is created.

    Returns T

    A vector with its elements set.