[−][src]Static p5_sys::global::radians
pub static radians: RadiansInternalType
Converts a degree measurement to its corresponding value in radians. Radians and degrees are two ways of measuring the same thing. There are 360 degrees in a circle and 2*PI radians in a circle. For example, 90° = PI/2 = 1.5707964. This function does not take into account the current angleMode.
Examples
let deg = 45.0; let rad = radians(deg); print(deg + ' degrees is ' + rad + ' radians'); // Prints: 45 degrees is 0.7853981633974483 radians
Parameters
degrees
the degree value to convert to radians