Here you can find the source of radiansToDegrees(float angleRads)
Parameter | Description |
---|---|
angleRads | The angle in radians. |
public static float radiansToDegrees(float angleRads)
//package com.java2s; //License from project: Open Source License public class Main { private static final float RADS_TO_DEGS = 180.0f / (float) Math.PI; /**//from w w w.j ava 2s .c o m * Convert an radians to degrees. * * @param angleRads The angle in radians. * @return The converted angle in degrees. */ public static float radiansToDegrees(float angleRads) { return angleRads * RADS_TO_DEGS; } }