[X3D-Public] JavaScript: Question to SFMatrix3f.set/getTransform

doug sanden highaspirations at hotmail.com
Mon Oct 20 09:49:30 PDT 2014


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.
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.
-Doug


----------------------------------------
> Date: Mon, 20 Oct 2014 18:34:28 +0200
> From: holger.seelig at yahoo.de
> To: x3d-public at web3d.org
> Subject: [X3D-Public] JavaScript: Question to SFMatrix3f.set/getTransform
>
> I cannot figure out what are the second and fourth argument of
> SFMatrix.getTransform are, the spec says:
>
> SFMatrix3f .setTransform setTransform (SFVec2f translation,
> SFVec3f rotation,
> SFVec2f scale,
> SFVec3f scaleOrientation,
> SFVec2f center)
>
> I can see that a SFVec3f should be used for the rotation arguments, but
> I don't know what the three values (x,y,z) stand for. To my
> understanding like the TexureTransform node a matrix3 rotation is only a
> simple float. I know that simple numbers cannot be passed by value to a
> JavaScript function.
>
>
> --
> Holger Seelig
> Mediengestalter Digital – Digital Media Designer
>
> Scheffelstraße 31a
> 04277 Leipzig
>
> Telefon: 01577 147 26 11
> E-Mail: holger.seelig at yahoo.de
>
> _______________________________________________
> X3D-Public mailing list
> X3D-Public at web3d.org
> http://web3d.org/mailman/listinfo/x3d-public_web3d.org
 		 	   		  


More information about the X3D-Public mailing list