PDA

View Full Version : Strange Euler


Jerry
02-02-2007, 01:55 PM
When I run this:

duck = viz.add('duck.wrl')
print duck.get(viz.EULER)
duck.scale(1,.5,1)
print duck.get(viz.EULER)

I get this:

[0.0, 0.0, 0.0]
[0.0, 0.0, -59.999996185302734]

Why does scaling affect the Euler angle?

farshizzo
02-02-2007, 02:42 PM
This was a bug in 2.5 which has already been fixed in 3.0.

I believe the problem was that the 3x3 rotation matrix was not normalized before extracting the euler angles from it.