Hello,

I developed a small framework to model orientation (north, east, south, west). It defines some common operations that can be done  on such objects (turning, getting the opposite orientation, moving on n steps on a discrete grid from a given position following certain orientation, etc���). Also, it supporte composed orientations (e.g. north-east). More details on GitHub [1].

To install it:

Metacello new
    baseline: 'Orientation';
    repository: 'github://juliendelplanque/Orientation/repository';
    load

This is not a lot but it is tested and I think it does its job well. So if you need to model orientation, consider to use it. :-)

If any ideas of what I could add to this API, I���m interested.

Regards,

Julien

[1]: https://github.com/juliendelplanque/Orientation

---
Julien Delplanque
Doctorant �� l���Universit�� de Lille 1
http://juliendelplanque.be/phd.html
Equipe Rmod, Inria
B��timent B 40, avenue Halley 59650 Villeneuve d'Ascq
Num��ro de t��l��phone: +333 59 35 86 40