M-File Help: angdiff View code for angdiff

angdiff

Difference of two angles

angdiff(th1, th2) is the difference between angles th1 and th2 on the circle. The result is in the interval [-pi pi). Either or both arguments can be a vector:

angdiff(th) as above but th=[th1 th2].

angdiff(th) is the equivalent angle to th in the interval [-pi pi).

Notes


 

© 1990-2014 Peter Corke.