This measures an angle with respect to a coordinate system. The angle can go all the way to 360, rather than a full 3d angle which can only get to 180 before it starts to reduce again.
Source Code
This projects points onto the input coordinate system's xy plane. It then measures the angle to each one. It is as if it was measuring the rotation around the z axis.
It can take lists or singletons..
This can probably be done more elegantly with vectors if the requirement was for angular sorting, but that's probably be a different function
Ben Doherty, 15-03-11, working at BVN Architecture.