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

    Type Parameters

    Parameters

    • x: number

      first value

    • y: number

      second 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.