We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hello, I need to calculate sin, cos, atan,... using double values because I'm calculating with GPS positions in decimal degrees. Is it possible to use double values for trig funcions, maybe basic java functions?
Answers
Use the Math class in place of Processing's API:
http://docs.Oracle.com/javase/8/docs/api/java/lang/Math.html
sin(PI)
->Math.sin(Math.PI)
Suffix every numerical literal containing a dot
.
ore
w/d
:15.7
->15.7d
-.4
->-.4d
1e-3
->1e-3d
Thank you!