Zwiebelchen
You can change this now in User CP.
- Reaction score
- 60
I'm looking for a function that returns the angle difference between two degree values A and B that both range from -180 to +180.
There are two important things about this:
- the function should always return the lowest angle difference (so no values above/below +/-180 degrees)
- the function should return the right algebraic sign ... positive values = counterclockwise, negative values = clockwise
maybe i'm just tired, but I simply can not figure out how to do it properly.
Can someone help?
There are two important things about this:
- the function should always return the lowest angle difference (so no values above/below +/-180 degrees)
- the function should return the right algebraic sign ... positive values = counterclockwise, negative values = clockwise
maybe i'm just tired, but I simply can not figure out how to do it properly.
Can someone help?