MCPcopy Create free account
hub / github.com/PyMesh/PyMesh / conjugate

Method conjugate

python/pymesh/misc/quaternion.py:150–158  ·  view source on GitHub ↗

returns the conjugate of this quaternion, does nothing to self.

(self)

Source from the content-addressed store, hash-verified

148 ])
149
150 def conjugate(self):
151 """ returns the conjugate of this quaternion, does nothing to self.
152 """
153 return Quaternion([
154 self.__quat[0],
155 -1 * self.__quat[1],
156 -1 * self.__quat[2],
157 -1 * self.__quat[3]
158 ])
159
160 def rotate(self, v):
161 """ Rotate 3D vector v by this quaternion

Callers 1

rotateMethod · 0.95

Calls 1

QuaternionClass · 0.85

Tested by

no test coverage detected