[x3d-public] SAI > X3DMatrix3 > setTransform > rotation > SFVec3f?
Holger Seelig
holger.seelig at yahoo.de
Fri Aug 4 06:21:01 PDT 2023
I do it this way:
https://create3000.github.io/x_ite/reference/field-services-and-objects#sfmatrix3dsfmatrix3f-object
With setTransform the rotation parameter is a number value, describing the rotation angle in radians.
With getTransform the rotation is a SFVec3f object, where x, and y are the complex value of the rotation, and the z component is the rotation angle in radians.
Best regards,
Holger
--
Holger Seelig
Leipzig, Germany
holger.seelig at yahoo.de
https://create3000.github.io/x_ite/
> Am 02.08.2023 um 23:48 schrieb John Carlson <yottzumm at gmail.com>:
>
> Chop up or extend the vector as needed, or use a different field type.
>
> John
>
> On Wed, Aug 2, 2023 at 4:25 PM GPU Group <gpugroup at gmail.com <mailto:gpugroup at gmail.com>> wrote:
>> https://www.web3d.org/documents/specifications/19777-1/V3.3/Part1/functions.html#Matrix3
>> https://www.web3d.org/documents/specifications/19775-2/V3.3/index.html
>> https://en.wikipedia.org/wiki/Transformation_matrix#Affine_transformations
>> Am I right to assume we want to use Matrix3 for Affine 2D transforms?
>> if so how should I use an SFVec3f for a 2D rotation?
>> If not how should I use an SFVec3f for a 3D rotation?
>> Thanks,
>> -Doug
>> _______________________________________________
>> x3d-public mailing list
>> x3d-public at web3d.org <mailto:x3d-public at web3d.org>
>> http://web3d.org/mailman/listinfo/x3d-public_web3d.org
> _______________________________________________
> x3d-public mailing list
> x3d-public at web3d.org
> http://web3d.org/mailman/listinfo/x3d-public_web3d.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20230804/41150136/attachment.html>
More information about the x3d-public
mailing list