Here you can find the source of deg2Rad(float degree)
Parameter | Description |
---|---|
degree | Der Winkel in Grad |
public static float deg2Rad(float degree)
//package com.java2s; //License from project: Open Source License public class Main { /**//w w w. j a v a2 s . co m * Wandelt Grad in Radians um */ public static final float DEG_TO_RAD = (float) (Math.PI / 180f); /** * Wandelt Grad in Radians um * * @param degree Der Winkel in Grad * @return Der Winkel in Radians */ public static float deg2Rad(float degree) { return DEG_TO_RAD * degree; } }