Processing (BETA) version 135+ のリファレンスです。 旧バージョン使用者はソフトウェア内のリファレンスを参照してください。
この文書は Processing のAPIリファレンスを日本語に訳したものです。 最新の内容は 英語版 で確認して下さい。


Name

applyMatrix()

Examples
example pic
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);
Description パラメタによって指定された数値でカレントマトリックスを乗算します。 この方法は変換の逆を計算しようとするため処理に時間がかかります。 そのため可能な場合は使用を避けてください。 OpenGLの等しい関数はglMultMatrix()です。
Syntax
applyMatrix(n00, n01, n02, n03
n04, n05, n06, n07
n08, n09, n10, n11
n12, n13, n14, n15)
Parameters
n00-n15 float: numbers which define the 4x4 matrix to be multiplied
Usage Web & Application
Related pushMatrix()
popMatrix()
resetMatrix()
printMatrix()
Updated on September 23, 2006 05:40:16pm PDT

Creative Commons License

この文書の原文はクリエイティブ・コモンズ(Creative Commons)Attribution-Noncommercial-Share Alike(表示・非営利・継承) ライセンスで公開されています。 このライセンスは同一の許諾条件の下で原作者のクレジットを表示し、また作品を営利目的で利用しなければ、作品に対して複製、頒布、展示、実演、二次的著作物の作成が行えることを示します。

© 2007 Processing.org