david

12-03-2003, 04:23 PM

Hi,

I noticed the function getRot() is not consistent.

I got the following lines in the interactive window:

>>> import vizmat

>>> X = vizmat.Transform()

>>> X.makeRot(0,1,0,180)

>>> X.getRot()

[0.0, -1.0, 0.0, 180.00000500895632]

>>> X.makeRot(0,1,0,90)

>>> X.getRot()

[-0.70710670948028564, 0.0, 0.7071068286895752, 180.00000500895632]

Could someone help out here?

David

I noticed the function getRot() is not consistent.

I got the following lines in the interactive window:

>>> import vizmat

>>> X = vizmat.Transform()

>>> X.makeRot(0,1,0,180)

>>> X.getRot()

[0.0, -1.0, 0.0, 180.00000500895632]

>>> X.makeRot(0,1,0,90)

>>> X.getRot()

[-0.70710670948028564, 0.0, 0.7071068286895752, 180.00000500895632]

Could someone help out here?

David