vectors subtraction to compute angle between 2 points.
This can be used, for instance, in 2D animation to have an object (eye) always point towards another (fly) when they both move... tutorial at [url]http://wiki.synfig.org/wiki/Doc:Point_to_one_object[/url]