Java Degree to Radian toRadians(float degrees)

Here you can find the source of toRadians(float degrees)

Description

to Radians

License

Apache License

Declaration

public static float toRadians(float degrees) 

Method Source Code

//package com.java2s;
/**// ww w.j av  a 2 s  . c o  m
 * Copyright 2008 - 2012
 * 
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
 * use this file except in compliance with the License. You may obtain a copy of
 * the License at
 * 
 * http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and limitations under
 * the License.
 * 
 * @project loonframework
 * @author cping
 * @email?javachenpeng@yahoo.com
 * @version 0.3.3
 */

public class Main {
    public static float toRadians(float degrees) {
        return (float) (degrees * 0.017453292519943295769236907684886);
    }
}

Related

  1. degToRad(final float deg)
  2. degToRad(float deg)
  3. toRadians(double angleDegrees)
  4. toRadians(double degrees)
  5. toRadians(double degrees)