koala-framework/koala-framework — pull request #234 by Ben-Ho (2014-08-11 16:20:51+00:00)
Title: Calculate cos and sin from radiant-values, not from degree

Before it was somehow extracted to /180 * PI() but this wasn't correct
because you can't extract it that easy with cos($long2 - $long1)