Android Degree to Radian Convert deg2rad(double deg)

Here you can find the source of deg2rad(double deg)

Description

Converts degree to radian

License

Open Source License

Parameter

Parameter Description
deg a parameter

Return

radian

Declaration

private static double deg2rad(double deg) 

Method Source Code

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

public class Main {
    /**//w  w w . ja  v a 2 s  .  co m
     * Converts degree to radian
     * 
     * @param deg
     * @return radian
     */
    private static double deg2rad(double deg) {
        return (deg * Math.PI / 180.0);
    }
}

Related

  1. toRadians(float deg)