Android Radian to Degree Convert rad2deg(double rad)

Here you can find the source of rad2deg(double rad)

Description

Converts radian to degree

License

Open Source License

Parameter

Parameter Description
rad a parameter

Return

degree

Declaration

private static double rad2deg(double rad) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    /**//from  w  w w. j  av  a  2  s.com
     * Converts radian to degree
     * 
     * @param rad
     * @return degree
     */
    private static double rad2deg(double rad) {
        return (rad * 180 / Math.PI);
    }
}

Related

  1. toDegrees(float rad)