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

Method __mul__

recipes/Python/205451_Povray_for_python/recipe-205451.py:45–46  ·  view source on GitHub ↗
(self,other)

Source from the content-addressed store, hash-verified

43 def __repr__(self):
44 return "Vector(%s)"%self.v
45 def __mul__(self,other):
46 return Vector( [r*other for r in self.v] )
47 def __rmul__(self,other):
48 return Vector( [r*other for r in self.v] )
49

Callers

nothing calls this directly

Calls 1

VectorClass · 0.70

Tested by

no test coverage detected