A Number
constant that's approximately 0.7854.
QUARTER_PI
is one-fourth the value of the mathematical constant π. It's useful for many tasks that involve rotation and oscillation. For example, calling rotate(QUARTER_PI)
rotates the coordinate system QUARTER_PI
radians, which is an eighth of a turn (45˚).
Note: TWO_PI
radians equals 360˚, PI
radians equals 180˚, HALF_PI
radians equals 90˚, and QUARTER_PI
radians equals 45˚.
Examples
This page is generated from the comments in src/core/constants.js . Please feel free to edit it and submit a pull request!