This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
crpl:docs:shortestangle [2014/10/01 19:02] – external edit 127.0.0.1 | crpl:docs:shortestangle [2025/02/14 14:57] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ~~DISCUSSION~~ | + | |
<- [[crpl: | <- [[crpl: | ||
===== 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 === | ||
- | < | + | < |