base:approximation_to_distance
Differences
This shows you the differences between two versions of the page.
Next revisionBoth sides next revision | |||
base:approximation_to_distance [2020-02-09 14:39] – created djmips | base:approximation_to_distance [2020-02-09 14:43] – djmips | ||
---|---|---|---|
Line 7: | Line 7: | ||
+ | The formula is d = max(|xd|, |yd|) + 1/2 × min(|xd|, |yd|) where xd = (x1-x2) and yd = (y1-y2) | ||
- | Note that for 6502 we can take the approximation even further | + | Note that for 6502 we will use a shift right to calculate |
< | < |
base/approximation_to_distance.txt · Last modified: 2020-02-11 01:45 by djmips