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.

Posted Sunday, December 5, 2004 at 23:11.

TrackBacks

TrackBack URL for this post: http://volition.vee.net/mt/mt-idle-trackback.cgi/376

Comments

Add a Comment



(Optional)


(Optional)


Preview your comment before submitting.