Here you can find the source of degreesToRadians(double degrees)
Parameter | Description |
---|---|
degrees | a parameter |
public static double degreesToRadians(double degrees)
//package com.java2s; public class Main { public static final double PI_OVER_180 = Math.PI / 180.d; /**/* w w w .j a v a2s . c o m*/ * Converts degrees to radians. * * @param degrees * @return radians */ public static double degreesToRadians(double degrees) { return degrees * PI_OVER_180; } }