[SciPy-user] AttributeError using threeAngles method

Leticia le_fdez at yahoo.es
Sun Nov 5 12:49:00 CST 2006



I want to obtain the rotation angles between a vector ( for example (1,1,1)
) and  3 axis . 


The axis are (1,0,0), (0,1,0) and (0,0,1). I think that I didn't forget
anything (not really sure :s)


This is my "minicode":


v = Vector(1,1,1)


r = Rotation(v)


e1 = Vector (1,0,0)

e2 = Vector (0,1,0)

e3 = Vector (0,0,1)


an = r.threeAngles(e1,e2,e3)


When I run it, I had this error:


Traceback (most recent call last):

  File "<string>", line 74, in run_nodebug

  File "C:\Documents and Settings\Leticia\Escritorio\ModulePrueba.py", line
18, in ?

    an = r.threeAngles(e1,e2,e3)

"C:\PYTHON24\lib\site-packages\Scientific\Geometry\Transformation.py", line
220, in threeAngles

    _c = e1*w - (e1*e2)*(e2*e3)

  File "C:\PYTHON24\lib\site-packages\Scientific\Geometry\VectorModule.py",
line 78, in __sub__

    return Vector(self.array-other.array)

AttributeError: 'float' object has no attribute 'array'



I need a little help with this error.




*** Leticia


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://projects.scipy.org/pipermail/scipy-user/attachments/20061105/83bcc162/attachment.html 

More information about the SciPy-user mailing list