User Tools

Site Tools


xrpl:shortestangle

Differences

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

Link to this comparison view

xrpl:shortestangle [2019/03/03 20:01] – created Karsten75xrpl:shortestangle [Unknown date] (current) – removed - external edit (Unknown date) 127.0.0.1
Line 1: Line 1:
- 
-=====  ShortestAngle   ===== 
- 
-^Arguments^Result^Notation^ 
-|float float| float| [float float- float] | 
- 
- 
-=== 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.  
- 
-=== Examples === 
-<code>trace(ShortestAngle(1.1 2.5))  
-</code> 
  
xrpl/shortestangle.1551661296.txt.gz · Last modified: 2019/03/03 20:01 by Karsten75