def translate_v3 ( vec , amount ) : return Vec3 ( vec . x + amount , vec . y + amount , vec . z + amount )
how to extend vectors python3
Return a new Vec3 that is translated version of vec .
def translate_v3(vec, amount):
    """Return a new Vec3 that is translated version of vec."""

    return Vec3(vec.x+amount, vec.y+amount, vec.z+amount)