Degree To Radian : Math « Game « Android






Degree To Radian

    


public class MathUtils
{
  
  public static final float PI = 3.1415926f;
  public static final float PIDiv180 = 0.017453292f;
  
  public static float DegreeToRadian(float degree)
  {
    return degree * PIDiv180;
  }
}

   
    
    
    
  








Related examples in the same category

1.Distance calculation
2.Tests if the line segment from (X1, Y1) to (X2, Y2) intersects the line segment from (X3, Y3) to (X4, Y4).
3.Get Angle for two lines
4.Calculate sin^2(x),cos^2(x),tan^2(x)