Static p5_sys::global::tan [−][src]
pub static tan: TanInternalType
Expand description
Calculates the tangent of an angle. This function takes into account the current angleMode. Values are returned in the range of all real numbers.
Examples
let a = 0.0; let inc = TWO_PI / 50.0; for (let i = 0; i < 100; i = i + 2) { line(i, 50, i, 50 + tan(a) * 2.0); a = a + inc; }
Parameters
angle
the angle