Function fromValues

  • Creates a vec4; may be called with x, y, z to set initial values. (same as create)

    Parameters

    • Optional x: number

      Initial x value.

    • Optional y: number

      Initial y value.

    • Optional z: number

      Initial z value.

    • Optional w: number

    Returns Vec4

    the created vector