I have 3 angles a b c
a=315 b=20 c=45
ok so would like to know giving all three if b is in between a and c
i have the long way of doing this adding a
Assuming a > c, you would actually use:
( b < a ) && ( b > c )
This is the same as checking if a value is between a lower and upper bound. Them being angles makes no difference, unless you want to take into account the fact that as you go round a circle, an angle of 405 is the same as an angle of 45. In which case you can just use a % 360 to get the angle betweeen 0 and 360.