animate/Catalogue/Scripts/degToRad.js

5 lines
77 B
JavaScript

function rad(degrees) {
var pi = Math.PI;
return degrees * (pi / 180);
}