<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"></head><body ><div>A matrix3 is coordinate system in 2d space, that has a origin (the translation) and a rotation and a scale and scaleOrientation. You Doug says, the first two values of the SFVec3f should be the complex number of the rotation, from that complex number I can calculate an angle. Should this be the third value?</div><div><br></div><div><br></div><div><div style="font-size:9px;color:#575757">Von Samsung Mobile gesendet</div></div><br><br><div>-------- Ursprüngliche Nachricht --------</div><div>Von: doug sanden <highaspirations@hotmail.com> </div><div>Datum:20.10.2014  18:49  (GMT+01:00) </div><div>An: x3d-public@web3d.org </div><div>Betreff: Re: [X3D-Public] JavaScript: Question to SFMatrix3f.set/getTransform </div><div><br></div>I think matrix3 is a 2D homogenous transform, much like matrix4 is a 3D homogenous transform. For 3D a rotation has 4 values: a 3D direction vector for the axis of rotation, and 4th value for the rotation angle about that axis.<br>For matrix3 (2D), there would be something analogous, but with one less dimension. Likely 2 values xy for a point of rotation, and a 3rd value for the angle of rotation about that point. scale orientation in 2D would need a point and rotation.<br>-Doug<br><br><br>----------------------------------------<br>> Date: Mon, 20 Oct 2014 18:34:28 +0200<br>> From: holger.seelig@yahoo.de<br>> To: x3d-public@web3d.org<br>> Subject: [X3D-Public] JavaScript: Question to SFMatrix3f.set/getTransform<br>><br>> I cannot figure out what are the second and fourth argument of<br>> SFMatrix.getTransform are, the spec says:<br>><br>> SFMatrix3f .setTransform setTransform (SFVec2f translation,<br>> SFVec3f rotation,<br>> SFVec2f scale,<br>> SFVec3f scaleOrientation,<br>> SFVec2f center)<br>><br>> I can see that a SFVec3f should be used for the rotation arguments, but<br>> I don't know what the three values (x,y,z) stand for. To my<br>> understanding like the TexureTransform node a matrix3 rotation is only a<br>> simple float. I know that simple numbers cannot be passed by value to a<br>> JavaScript function.<br>><br>><br>> --<br>> Holger Seelig<br>> Mediengestalter Digital – Digital Media Designer<br>><br>> Scheffelstraße 31a<br>> 04277 Leipzig<br>><br>> Telefon: 01577 147 26 11<br>> E-Mail: holger.seelig@yahoo.de<br>><br>> _______________________________________________<br>> X3D-Public mailing list<br>> X3D-Public@web3d.org<br>> http://web3d.org/mailman/listinfo/x3d-public_web3d.org<br>                                       <br>_______________________________________________<br>X3D-Public mailing list<br>X3D-Public@web3d.org<br>http://web3d.org/mailman/listinfo/x3d-public_web3d.org<br></body>