This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
crpl:docs:shortestangle [2021/02/05 11:43] – Rmoved discussion tag Karsten75 | crpl:docs:shortestangle [2022/07/04 08:51] (current) – Reformat Karsten75 | ||
---|---|---|---|
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 === | ||
- | < | + | < |