Josiah, you're absoultely right!

but I haven't notice that. Actually,
In my flightsim game, I want to figure out what is the bearing and heading
of the enemy plane relative to the player. With my previous code, if the
enemy is infront of the player (0 degree), then I turn it 180 away from
the enemy and it still read 0 degree not 180. Yeah, this is what I'm
really looking for, thank you very much!