2017-02-25 1 views

答えて

0

このような質問に答える最善の方法は、the referenceです。あなたがapplyMatrix()機能を探しているよう

サウンズ:

size(100, 100, P3D); 
noFill(); 
translate(50, 50, 0); 
rotateY(PI/6); 
stroke(153); 
box(35); 
// Set rotation angles 
float ct = cos(PI/9.0); 
float st = sin(PI/9.0);   
// Matrix for rotation around the Y axis 
applyMatrix( ct, 0.0, st, 0.0, 
      0.0, 1.0, 0.0, 0.0, 
      -st, 0.0, ct, 0.0, 
      0.0, 0.0, 0.0, 1.0); 
stroke(255); 
box(50); 

transformed cube

は パラメータで指定された1で現在の行列を乗算します。これは変換の逆数を計算するため非常に遅いため、可能な限り避けてください。 OpenGLの同等の機能はglMultMatrix()です。

同等のProcessing.pyリファレンスはhereです。

+0

パーフェクト!ありがとう。 – spitespike

関連する問題