Function set

  • Sets the values of a Vec2 Also see vec2.create and vec2.copy

    Parameters

    • x: number

      first value

    • y: number

      second value

    • Optional dst: Vec2

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

    Returns Vec2

    A vector with its elements set.