User Tools

Site Tools


4rpl:commands:atan2

This is an old revision of the document!


Index

atan2

atan2(<-targetZ <-targetX) ->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 z coordinate.

Examples

trace(atan2(1 2)) #prints '0.463647609'

Index

4rpl/commands/atan2.1610121708.txt.gz · Last modified: 2021/01/08 11:01 by 127.0.0.1