一个 Number
常量,约为 6.2382。
TWO_PI
是数学常数 π 的两倍。它在许多涉及旋转和振荡的任务中非常有用。例如,调用 rotate(TWO_PI)
会将坐标系旋转 TWO_PI
弧度,即一个完整的转向(360˚)。TWO_PI
和 TAU
相等。
注意:TWO_PI
弧度等于 360˚,PI
弧度等于 180˚,HALF_PI
弧度等于 90˚,QUARTER_PI
弧度等于 45˚。
示例
This page is generated from the comments in src/core/constants.js . Please feel free to edit it and submit a pull request!