Converts an angle measured in degrees to the equivalent angle measured in radians - Android java.lang

Android examples for java.lang:Math Trigonometric Function

Description

Converts an angle measured in degrees to the equivalent angle measured in radians

Demo Code


//package com.java2s;

public class Main {
    /**//from   www  .  j av a  2 s . c  o m
     * Converts an angle measured in degrees to the equivalent angle measured in radians
     * @param angleDegrees The angle measured in degrees
     * @return The equivalent angle measured in radians
     */
    public static double degreesToRadians(double angleDegrees) {
        return Math.toRadians(angleDegrees);
    }
}

Related Tutorials