QUARTER_PI

本参考资料用于Processing 3.0+。 如果你使用的是前一版本,请在使用软件帮助菜单内的参考资料。. If you see any errors or have suggestions, please let us know. If you prefer a more technical reference, visit the Processing Core Javadoc and Libraries Javadoc.

名称

QUARTER_PI

示例
float x = width/2;


float y = height/2;


float d = width * 0.8;

arc(x, y, d, d, 0, QUARTER_PI);

arc(x, y, d-20, d-20, 0, HALF_PI);

arc(x, y, d-40, d-40, 0, PI);

arc(x, y, d-60, d-60, 0, TWO_PI);

描述 QUARTER_PI is a mathematical constant with the value 0.7853982. It is one quarter the ratio of the circumference of a circle to its diameter. It is useful in combination with the trigonometric functions sin() and cos().
相关 PI
TWO_PI
TAU
HALF_PI

Updated on October 2, 2018 05:02:10pm EDT

QUARTER_PI