def scale_v2 ( vec , amount ) : return Vec2 ( vec . x * amount , vec . y * amount )
wrap a vector python
Return a new Vec2 with x and y from vec and multiplied by amount .
def scale_v2(vec, amount):
    """Return a new Vec2 with x and y from vec and multiplied by amount."""

    return Vec2(vec.x * amount, vec.y * amount)