atan2
host callCapy
function atan2(y : f32, x : f32) f32 function atan2(y : f64, x : f64) f64
Description
atan2() returns the angle for the point (x, y).
This function uses a host call.
Parameters
y : the y coordinate
x : the x coordinate
Return Values
An f32 or f64 angle in radians.
Example
Capy
var value := atan2(1.0, 0.0) print(value, "\n")