List of usage examples for java.lang StrictMath toRadians
public static strictfp double toRadians(double angdeg)
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())); } }