Prev: CFF2 Up: Map Next: D0C4
D0A0: Routines for the depth sort's outcomes
Indexed by SORT_AND_DRAW_THINGS's comparison of the candidate with another thing: the U outcome (0 the candidate wholly at larger U, 1 overlapping, 2 wholly at smaller U), plus three times the V outcome (0 the candidate at larger V, 1 overlapping, 2 at smaller V), plus 9 with the town turned round. In the usual view smaller U and larger V are further back; turned round, larger U and smaller V. DEPTH_KEEP keeps the candidate, DEPTH_SWAP makes the other thing the candidate, and DEPTH_BY_CORNERS settles boxes that overlap on both axes. Where each box is further back along one axis and nearer along the other (0, 8, 9 and 17), the order does not matter, and the candidate stays.
DEPTH_TABLE D0A0 DEFW DEPTH_KEEP 0: the candidate at larger U and larger V -- no order: it stays
D0A2 DEFW DEPTH_KEEP 1: the same U, the candidate at larger V, so further back: it stays
D0A4 DEFW DEPTH_KEEP 2: the candidate at smaller U and larger V, further back on both: it stays
D0A6 DEFW DEPTH_SWAP 3: the candidate at larger U, the same V: the other is further back
D0A8 DEFW DEPTH_BY_CORNERS 4: overlapping on both axes: by their nearest corners
D0AA DEFW DEPTH_KEEP 5: the candidate at smaller U, the same V: it stays
D0AC DEFW DEPTH_SWAP 6: the candidate at larger U and smaller V: the other is further back on both
D0AE DEFW DEPTH_SWAP 7: the same U, the candidate at smaller V: the other is further back
D0B0 DEFW DEPTH_KEEP 8: the candidate at smaller U and smaller V -- no order: it stays
D0B2 DEFW DEPTH_KEEP 9: turned round, the candidate at larger U and larger V -- no order: it stays
D0B4 DEFW DEPTH_SWAP 10: turned round, the same U, the candidate at larger V: the other is further back
D0B6 DEFW DEPTH_SWAP 11: turned round, the candidate at smaller U and larger V: the other is further back on both
D0B8 DEFW DEPTH_KEEP 12: turned round, the candidate at larger U, the same V: it stays
D0BA DEFW DEPTH_BY_CORNERS 13: turned round, overlapping on both axes: by their nearest corners
D0BC DEFW DEPTH_SWAP 14: turned round, the candidate at smaller U, the same V: the other is further back
D0BE DEFW DEPTH_KEEP 15: turned round, the candidate at larger U and smaller V, further back on both: it stays
D0C0 DEFW DEPTH_KEEP 16: turned round, the same U, the candidate at smaller V: it stays
D0C2 DEFW DEPTH_KEEP 17: turned round, the candidate at smaller U and smaller V -- no order: it stays
Prev: CFF2 Up: Map Next: D0C4