crpl:docs:atan2

Differences

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

Link to this comparison view

Next revision
Previous revision
crpl:docs:atan2 [2013/01/14 19:04] – created virgilwcrpl:docs:atan2 [2025/02/14 14:57] (current) – external edit 127.0.0.1
Line 1: Line 1:
-TODO+ 
 +<- [[crpl:crplreference| CRPL reference]] <- [[crpl:crplreference#math_commands|Math Commands]] 
 +=====  atan2  ===== 
 + 
 + <-targetZ <-targetX atan2 ->angleToTarget 
 + 
 +=== Description === 
 +Computes and returns the angle of the point y/x in radians.  
 +The return value is between positive pi and negative pi.  
 +Note that the first parameter to atan2 is always the y coordinate. 
 +=== Examples === 
 +<code 4RPL> 
 +1 2 atan2 trace 
 +</code>  
crpl/docs/atan2.1358190246.txt.gz · Last modified: 2025/02/14 14:56 (external edit)