Java examples for java.lang:Math Geometry
Converts radians to degrees.
//package com.java2s; public class Main { /**//from w ww.j a v a2s .c o m * Converts radians to degrees. * * <p> * This method uses double precision internally, though it returns single float. Factor = 180 / * pi. * * @param radians * The angle in radians. * @return The angle in degrees. */ public static float toDegrees(float radians) { return (float) (radians * 57.295779513082320876798154814105); } }