Box the compass: Difference between revisions
Content added Content deleted
mNo edit summary |
(Change the pseudocode from '0..33 inclusive' to '0..32 inclusive'. Prevents an extra angle at 371.25 degrees. The existing Python and vb.NET code already uses 0..32 inclusive.) |
||
Line 13: | Line 13: | ||
'''Note''' |
'''Note''' |
||
* The headings and indices can be calculated from this pseudocode: |
* The headings and indices can be calculated from this pseudocode: |
||
<pre>for i in 0.. |
<pre>for i in 0..32 inclusive: |
||
heading = i * 11.25 |
heading = i * 11.25 |
||
case i %3: |
case i %3: |