Greetings,

I think that there's a bug in coordsyst.pyx, revision 1.22, and that
the little patch below is correct.

Incidentally, the quaternions are reversed from what I'm used to;
e.g., no-rotation corresponds to [0,0,0,1], while I was expecting
[1,0,0,0]. Is this a common convention?

Cheers,

Rory

(HappyFool on freenode)

--- coordsyst.pyx.~1.22.~       2005-09-18 21:55:25.000000000 +0200
+++ coordsyst.pyx       2005-10-11 21:16:51.000000000 +0200
@@ -762,7 +762,7 @@
     
   property quaternion:
      def __get__(self):
-       self.check_validity()
+       self._check_state_validity()
        return self._quaternion[0], self._quaternion[1], self._quaternion[2], 
self._quaternion[3]
      def __set__(self, q):
        self._option = self._option | COORDSYST_STATE_VALID


Reply via email to