Search code examples
eclipsetrigonometrydegreesradians

How to make eclipse be based on degrees?


As much as I am confortable with using degrees I am unconfortable with using radians, which is much. This makes it a real pain for me to use radians for the trigo functions in eclipse. Is it possible to use the trigo functions with degrees instead of the default radians?


Solution

  • There's a built-in function called Math.toDegrees(double) that you could call on your number to convert it into degrees. Does that work for you?

    There's also a Math.toRadians(double) function as well.

    http://docs.oracle.com/javase/7/docs/api/java/lang/Math.html