Java examples for java.lang:Math Radian
convert Degrees To Radians
//package com.java2s; public class Main { public static void main(String[] argv) throws Exception { float degrees = 2.45678f; System.out.println(convertDegreesToRadians(degrees)); }/* w w w. ja v a2s. c o m*/ public static final float DEG_TO_RAD_FACTOR = (float) (Math.PI / 180.0); public static float convertDegreesToRadians(float degrees) { return degrees * DEG_TO_RAD_FACTOR; } }