MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / reciprocal

Method reciprocal

lib/mpl_toolkits/mplot3d/axes3d.py:4357–4360  ·  view source on GitHub ↗

The reciprocal, 1/q = q'/(q*q') = q' / norm(q)

(self)

Source from the content-addressed store, hash-verified

4355 return self.__class__(self.scalar/n, self.vector/n)
4356
4357 def reciprocal(self):
4358 """The reciprocal, 1/q = q'/(q*q') = q' / norm(q)"""
4359 n = self.norm
4360 return self.__class__(self.scalar/n, -self.vector/n)
4361
4362 def __div__(self, other):
4363 return self*other.reciprocal()

Callers 2

__div__Method · 0.80
test_quaternionFunction · 0.80

Calls

no outgoing calls

Tested by 1

test_quaternionFunction · 0.64