Example usage for java.lang StrictMath toRadians

List of usage examples for java.lang StrictMath toRadians

Introduction

In this page you can find the example usage for java.lang StrictMath toRadians.

Prototype

public static strictfp double toRadians(double angdeg) 

Source Link

Document

Converts an angle measured in degrees to an approximately equivalent angle measured in radians.

Usage

From source file:Main.java

public static void main(String[] args) {

    double d1 = 12, d2 = 0.0;

    System.out.println("value in radian of " + d1 + " = " + StrictMath.toRadians(d1));

    System.out.println("value in radian of " + d2 + " = " + StrictMath.toRadians(d2));
}

From source file:org.pentaho.plugin.jfreereport.reportcharts.CategoricalChartExpression.java

public void setLabelRotationDeg(final Double value) {
    if (value == null) {
        labelRotation = null;/*from w w w .  j  av a 2 s . co  m*/
    } else {
        labelRotation = new Double(StrictMath.toRadians(value.doubleValue()));
    }
}

From source file:org.pentaho.plugin.jfreereport.reportcharts.CategoricalChartExpression.java

public void setCategoricalItemLabelRotationDeg(final Double value) {
    if (value == null) {
        categoricalItemLabelRotation = null;
    } else {/*from   w ww .j  a  v a2  s  .  c om*/
        categoricalItemLabelRotation = new Double(StrictMath.toRadians(value.doubleValue()));
    }
}