Added math.clamp() to the lua api

It would good when the clamp() function is available in the lua api.
Bad formatting - the braces should be on separate lines.