Here you can find the source of degToRad(double deg)
Parameter | Description |
---|---|
deg | a parameter |
public static double degToRad(double deg)
//package com.java2s; //License from project: Open Source License public class Main { /**//w w w. j a va 2s . com * Converts degrees into radiant * @param deg * @return */ public static double degToRad(double deg) { return deg * Math.PI / 180; } }