Here you can find the source of toRadians(double angle)
public static double toRadians(double angle)
//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; } }