convert degrees to radians equation code example
Example 1: how to convert radians to degrees
// Math is in the System namespace.
double degrees = radians * 180 / Math.PI;
Example 2: degrees to radians
double radians = Math.toRadians(degrees);
// Math is in the System namespace.
double degrees = radians * 180 / Math.PI;
double radians = Math.toRadians(degrees);