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

Method normalize

lib/mpl_toolkits/mplot3d/axes3d.py:4352–4355  ·  view source on GitHub ↗

Scaling such that norm equals 1

(self)

Source from the content-addressed store, hash-verified

4350 return self.scalar*self.scalar + np.dot(self.vector, self.vector)
4351
4352 def normalize(self):
4353 """Scaling such that norm equals 1"""
4354 n = np.sqrt(self.norm)
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)"""

Callers 2

test_quaternionFunction · 0.80
__sub__Method · 0.80

Calls 1

sqrtMethod · 0.80

Tested by 2

test_quaternionFunction · 0.64
__sub__Method · 0.64