Next: , Previous: , Up: Movements   [Contents][Index]


2.2 Directed relative positioning

The concept of directed relative positioning, necessary to easily describe the relations between constructions and the kid is analogous to the already defined concept of non-directed relative positioning, used to describe relations between constructions. Consider the kid’s place C, which has the coordinates (r,f,p), its 8 adjacent places and the direction the kid is facing, as shown in the following two figures.

mininim-figures/relative-coordinates-directed-left mininim-figures/relative-coordinates-directed-right
TF (top front) T (top) TB (top back) F (front) C (center)
BA (back) BF (bottom front), B (bottom) BB (bottom back)

Then we define the following mapping between names and coordinates:

LeftRightCoordinates
TFTB(r,f - 1,p - 1)
TT(r,f - 1,p)
TBTF(r,f - 1,p + 1)
FBA(r,f,p - 1)
CC(r,f,p)
BAF(r,f,p + 1)
BFBB(r,f + 1,p - 1)
BB(r,f + 1,p)
BBBF(r,f + 1,p + 1)