Radians To Degrees - Android java.lang

Android examples for java.lang:Math Trigonometric Function

Description

Radians To Degrees

Demo Code


//package com.java2s;

public class Main {
    public static final float FLOAT_PI = (float) Math.PI;

    public static float RadiansToDegrees(float radians) {
        return (radians * 180f) / FLOAT_PI;
    }// w ww  .  jav a  2s .  co m
}

Related Tutorials