angle In Radians - Android java.lang

Android examples for java.lang:Math Trigonometric Function

Description

angle In Radians

Demo Code


//package com.java2s;

public class Main {
    public static double angleInRadians(int degree) {
        return degree * (Math.PI / 180);
    }/* w ww  . j  a va 2  s  .  c  om*/
}

Related Tutorials