This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| crpl:docs:shortestangle [2021/02/05 16:43] – Rmoved discussion tag Karsten75 | crpl:docs:shortestangle [2025/02/14 14:57] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 3: | Line 3: | ||
| ===== ShortestAngle | ===== ShortestAngle | ||
| - | ^Arguments^Result^Notation^ | + | <-curAngle <-newAngle ShortestAngle -> |
| - | |Two angles in radians|The shortest angle between the two specified angles |'' | + | |
| === Description === | === Description === | ||
| - | Given two angles, calculates the shortest angle between the two. Useful for determining which direction a unit should rotate in order to turn to a given direction. | + | Given two angles |
| === Examples === | === Examples === | ||
| - | < | + | < |