a port of the Processing Visualization Language
Name

QUARTER_PI (0.78539...)

Examples
float angle = 0.0; 

beginShape(POLYGON); 

vertex(width/2, height/2);

while(angle  QUARTER_PI) { 

  vertex(width/2 + cos(angle)*40, height/2 + sin(angle)*40); 

  angle += PI/12.0; 

} 

endShape(CLOSE);
Description 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().
Usage Web & Application
Related PI
TWO_PI
HALF_PI

This reference is licensed under the CC BY-NC-SA 2.0 license:

Creative Commons License
Fork me on GitHub