Java Radian From toRadians(double angle)

Here you can find the source of toRadians(double angle)

Description

to Radians

License

MIT License

Declaration

public static double toRadians(double angle) 

Method Source Code

//package com.java2s;
/**//from  ww w  . j a v  a 2s.  c o m
* Copyright (c) Lambda Innovation, 2013-2016
* This file is part of LambdaLib modding library.
* https://github.com/LambdaInnovation/LambdaLib
* Licensed under MIT, see project root for more information.
*/

public class Main {
    public static final float PI_F = (float) Math.PI;

    public static double toRadians(double angle) {
        return angle * Math.PI / 180;
    }

    public static float toRadians(float angle) {
        return angle * PI_F / 180;
    }
}

Related

  1. toRad(double angle)
  2. toRad(float angle)
  3. toRadian(double ddd_dddd)
  4. toRadian(int a)
  5. toRadians(double angdeg)
  6. toRadians(double value)
  7. toRadians(double x)
  8. toRadians(final double value)
  9. toRadians(float a)