Difference between revisions of "Distance"
From DoomRL Wiki
Game Hunter (Talk | contribs) (Created page with "{{Technical}} {| style="rules: cols; border: 2px solid darkred; border-spacing: 0; float: right; font-size: 100%; margin: 0.25em 0.5em; text-align: right" |style="background: da...") |
GinDiamond (Talk | contribs) m |
||
Line 5: | Line 5: | ||
|- | |- | ||
|<pre> | |<pre> | ||
− | + | 9 | |
− | + | 98889 | |
− | + | 988777889 | |
− | + | 88776667788 | |
− | + | 8776655566778 | |
− | + | 8765544455678 | |
− | + | 876544333445678 | |
− | + | 876543222345678 | |
− | + | 87654321112345678 | |
− | + | 87654321@12345678 | |
− | + | 87654321112345678 | |
− | + | 876543222345678 | |
− | + | 876544333445678 | |
− | + | 8765544455678 | |
− | + | 8776655566778 | |
− | + | 88776667788 | |
− | + | 988777889 | |
− | + | 98889 | |
− | + | 9 | |
</pre> | </pre> | ||
|} | |} |
Revision as of 17:09, 20 July 2012
Technical | |
This article discusses technical aspects of DoomRL and will be of limited interest to most players. |
Distances |
9 98889 988777889 88776667788 8776655566778 8765544455678 876544333445678 876543222345678 87654321112345678 87654321@12345678 87654321112345678 876543222345678 876544333445678 8765544455678 8776655566778 88776667788 988777889 98889 9 |
Distance in Doom RL is measured according to the so-called Angband metric. In short, distance is the long axis plus half the short axis. The result is always rounded down.
The Angband metric is intended to approximate the usual Euclidean metric. If we round the Euclidean metric to the nearest integer, then the comparison is as follows. Up to a radius of 3, the metrics coincide exactly. Up to a radius of 12, the difference is within 1. In general (ignoring rounding), the Angband metric is always greater than the Euclidean metric, but not more than 12% greater.