The
HALF_PI is a mathematical constant and its value is 1.57079632679489661923. The HALF_PI is the half ratio of the circumference of a circle to its diameter.
Syntax:
HALF_PI
Below program illustrates the usage of HALF_PI in p5.js:
Example:
Output:
👁 Image
Reference: https://p5js.org/reference/#/p5/HALF_PI