[−][src]Static p5_sys::global::atan
pub static atan: AtanInternalType
The inverse of tan(), returns the arc tangent of a value. This function expects the values in the range of -Infinity to Infinity (exclusive) and values are returned in the range -PI/2 to PI/2 if the angleMode is RADIANS or -90 to 90 if the angle mode is DEGREES.
Examples
let a = PI / 3.0; let t = tan(a); let at = atan(t); // Prints: "1.0471975 : 1.7320508 : 1.0471975" print(a + ' : ' + t + ' : ' + at);
let a = PI + PI / 3.0; let t = tan(a); let at = atan(t); // Prints: "4.1887902 : 1.7320508 : 1.0471975" print(a + ' : ' + t + ' : ' + at);
Parameters
value
the value whose arc tangent is to be returned