Method toRadians(double angdeg)
Return type: double
Member of:
java.lang.Math
[
api documentation
] [
main menu
]
Examples of how the element is used
(one line per example):
[
add your own example
]
1
g.rotate(Math.toRadians(90));
2
return new BigDecimal(Math.toRadians(val.doubleValue()));
3
g.rotate(Math.toRadians(90));//rotate 90 degrees clockwise
4
affineTransform = new AffineTransform(1.0,Math.tan(Math.toRadians(angle)),0.0,
5
g.drawLine(x, y, x + (int)(radius * Math.cos(Math.toRadians(startingAngle))), y - (int)(radius * Math.sin(Math.toRadians(startingAngle))));
6
if(rotateBy!=0) at.rotate(Math.toRadians(rotateBy));
7
maxRadius = (maxRadius <= 0) ? 0 : (int)Math.abs((maxRadius/Math.cos(Math.toRadians(startingAngle+(angularDistance/2)))));
8
double radians = Math.toRadians((double) angle);
9
sinOfBorder = Math.sin( Math.toRadians( workDegrees ) );
Java and J2SE are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and other Countries.