Here you can find the source of toRadians(double angleDegrees)
Parameter | Description |
---|---|
angleDegrees | an angle in degrees |
public static double toRadians(double angleDegrees)
//package com.java2s; //License from project: Open Source License public class Main { /**//from w w w .ja v a2s . c om * Converts from degrees to radians. * * @param angleDegrees an angle in degrees * @return the angle in radians * * Copied from JTS library */ public static double toRadians(double angleDegrees) { return (angleDegrees * Math.PI) / 180.0; } }