Misc. Formulas

ICE Data Services -

Misc. Formulas

 

  • Calculate the angle (in degrees) of a slope:

 

//Assume a 30% slope (rise over run);
nSlope = 0.30;
nAngle = Math.atan( nSlope ) / ( Math.PI/180 );
nAngle now equals approx 16.67 Degrees.

  

  • Calculate the slope (in %) from an angle: 
//Assume a 20-degree angle
nAngle = 20.0;
nSlope = Math.tan( nAngle * (Math.PI/180) );
nSlope now equals 0.3639 or a 36.39% slope.