|
MayaFlux 0.5.0
Digital-First Multimedia Processing Framework
|
|
inlinenoexcept |
Shortest signed angular difference between two headings.
| to | Target angle in radians |
| from | Source angle in radians |
Plain subtraction (to - from) is wrong whenever the pair straddles the -pi/pi boundary, e.g. from = 3.0, to = -3.0 is a small turn, not a turn of nearly 2*pi. This wraps into the shortest equivalent angle first.
Definition at line 353 of file Differential.hpp.
Referenced by angular_velocity(), and total_turning().
Here is the caller graph for this function: