Android Degree to Radian Convert toRadians(float deg)

Here you can find the source of toRadians(float deg)

Description

Returns the given degrees to radians

Declaration

public static float toRadians(float deg) 

Method Source Code

//package com.java2s;

public class Main {
    /**/* w  w  w.j a  v a  2 s  . c  om*/
     * Convert degrees to Radians.
     */
    public static final float TO_RADIANS = 0.0174532925f;

    /**
     * Returns the given degrees to radians
     */
    public static float toRadians(float deg) {
        return deg * TO_RADIANS;
    }
}

Related

  1. deg2rad(double deg)