インフォ FAQ
言語 環境比較
 
Index
 
  Processing 1.0 _ALPHAリファレンスは開発途中である。
もしエラーやコメントがあれば、reas at groupc.netへメールして下さい。
Name  

TWO_PI (6.28318...)

   
Examples  
float f = 0.0; 
beginShape(POLYGON); 
while(f < TWO_PI) { 
  vertex(width/2 + cos(f)*40, height/2 + sin(f)*40); 
  f += PI/12.0; 
} 
endShape(); 
Description  

TWO_PIは6.28318530717958647693の値をもつ数学的な定数である。直径における円の円周率である。三角関数sin()cos()と組み合わせると便利である。

 

   
Syntax  
TWO_PI
   
Usage   Web & Application
   
Related   PI
HALF_PI
   
© 2004- 2001 Massachusetts Institute of Technology and Interaction Design Institute Ivrea
Processing is an open project initiated by Ben Fry and Casey Reas