MCPcopy Create free account
hub / github.com/ActiveState/code / __div__

Method __div__

recipes/Python/502252_Physics/recipe-502252.py:48–50  ·  view source on GitHub ↗

Return the quotient of vector division.

(self, number)

Source from the content-addressed store, hash-verified

46 return Vector(self.x * number, self.y * number)
47
48 def __div__(self, number):
49 'Return the quotient of vector division.'
50 return Vector(self.x / number, self.y / number)
51
52 def __iadd__(self, vector):
53 'Execute addition in-place.'

Callers

nothing calls this directly

Calls 1

VectorClass · 0.70

Tested by

no test coverage detected