Sometimes, especially in arcRotateCamera animations, you want to clamp radians before animating, to avoid multiple 360° turning around.

Usecase: your user arcRotCam alpha == 22, but in your animation when clicking an object you’ve targetted alpha = 1 > cmaera will start to turn multiple times.

Actually I already use a snippet for that:

```
function clampRadian(radianValue) {
var cyclesNumber;
// help thanks to http://www.purplemath.com/modules/radianValueians2.htm
if (radianValue < (-2 * Math.PI) || radianValue > (2 * Math.PI)) {
if (radianValue >= 0) {
cyclesNumber = Math.floor(radianValue / (2 * Math.PI));
} else {
cyclesNumber = Math.ceil(radianValue / (2 * Math.PI));
}
radianValue = radianValue - (cyclesNumber * (2 * Math.PI));
}
return radianValue;
}
function clampVector(vector3) {
return BABYLON.Vector3.FromArray([
clampRadians(vector3.x),
clampRadians(vector3.y),
clampRadians(vector3.z),
]);
}
```

(I hope my maths are OK here)

In short, it could be great to have a `BABYLON.Tools.clampRadians(Vector3)`

or `BABYLON.Tools.clampRadian(radian value)`

so as to get values between `-2 * Math.PI`

& `2 * Math.PI`

only.