- This wiki is out of date, use the continuation of this wiki instead
PI
From FenixWiki
(Difference between revisions)
Revision as of 00:56, 3 May 2007 (edit) Sandman (Talk | contribs) ← Previous diff |
Current revision (00:56, 3 May 2007) (edit) (undo) Sandman (Talk | contribs) |
Current revision
[edit] Definition
INT PI == 180000
The equivalent to the mathematical pi (3.14159265...), in thousandths of a degree. It can be used to define angles, like assigning one to the local variable angle, or passing one to the function xadvance().
[edit] Example
angle = PI/2; // 90000 (90 degrees) xadvance(-PI/4,10); // -45000 (-45 degrees)