returns the conjugate of this quaternion, does nothing to self.
(self)
| 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 |