Here you can find the source of degreesToRadians(float angleDegs)
Parameter | Description |
---|---|
angleDegs | The angle in degrees. |
public static float degreesToRadians(float angleDegs)
//package com.java2s; //License from project: Open Source License public class Main { private static final float DEGS_TO_RADS = (float) Math.PI / 180.0f; /**//from w w w. j a v a2 s .co m * Convert an angle from degrees to radians. * * @param angleDegs The angle in degrees. * @return The converted angle in radians. */ public static float degreesToRadians(float angleDegs) { return angleDegs * DEGS_TO_RADS; } }