Function fromValues

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

    Parameters

    • x: number = 0

      Initial x value.

    • y: number = 0

      Initial y value.

    Returns Vec2

    the created vector