Determining angle between targets

Determining angle between targets

I want my program to determine in which 16th of a circle an object is from another.

Determining which octant it is based on whether the x or y difference is larger, and which ones are negative/positive, is trivial. I'm hoping that there's a similar way to do so for 16ths.

Basically, I'm a minimalist and perfectionist, I'd prefer to avoid using a technically imperfect slope lookup table or trigonometric functions, though I'm afraid that's impossible. Still, hoping someone here can prove me wrong.