User Tools

Site Tools


crpl:docs:shortestangle

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
crpl:docs:shortestangle [2021/02/05 11:43] – Rmoved discussion tag Karsten75crpl:docs:shortestangle [2022/07/04 08:51] (current) – Reformat Karsten75
Line 3: Line 3:
 =====  ShortestAngle  ===== =====  ShortestAngle  =====
  
-^Arguments^Result^Notation^ +<-curAngle <-newAngle ShortestAngle ->rotAngle
-|Two angles in radians|The shortest angle between the two specified angles |''f1 f2 -- f3 ''+
  
 === 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.  A positive or negative value will be returned in the range of PI to -PI.  Negative values indicate clockwise rotation.+Given two angles ((in radians?)), calculates the shortest angle between the two.  Useful for determining which direction a unit should rotate in order to turn to a given direction.  A positive or negative value will be returned in the range of PI to -PI.  Negative values indicate clockwise rotation.
 === Examples === === Examples ===
-<code>1.1 2.5 ShortestAngle trace</code> +<code 4RPL>1.1 2.5 ShortestAngle trace</code> 
crpl/docs/shortestangle.txt · Last modified: 2022/07/04 08:51 by Karsten75