Here you can find the source of deg2rad(double deg)
Parameter | Description |
---|---|
deg | a parameter |
private static double deg2rad(double deg)
//package com.java2s; //License from project: Open Source License public class Main { /**//w w w . ja v a 2 s . co m * Converts degree to radian * * @param deg * @return radian */ private static double deg2rad(double deg) { return (deg * Math.PI / 180.0); } }