radians, dammit!
Geek
The problem with java.lang.Math (apart that it should be java.lang.Maths) is that the trigonometic methods like sin(double) all take parametes in radians, not degrees. So because I use them maybe once evey few years, I forget this, then spend hours working out why I'm getting a negative number back from things like Math.sin(18.0).
Who would have thought drawing pentagrams was so problematic?
Maybe I should just practice my trig more so I start thinking in radians instead of degrees, or at least so the source of the problem is more obvious.
Comments
Add a Comment