User Tools

Site Tools


crpl:docs:atan2

<- CRPL reference <- 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

1 2 atan2 trace
crpl/docs/atan2.txt · Last modified: 2022/07/01 14:51 by Karsten75