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

Method __rshift__

recipes/Python/578006_vector/recipe-578006.py:155–158  ·  view source on GitHub ↗
(self, obj)

Source from the content-addressed store, hash-verified

153 return Vector2(self.x << obj, self.y << obj)
154
155 def __rshift__(self, obj):
156 if isinstance(obj, Vector2):
157 return Vector2(self.x >> obj.x, self.y >> obj.y)
158 return Vector2(self.x >> obj, self.y >> obj)
159
160 def __and__(self, obj):
161 if isinstance(obj, Vector2):

Callers

nothing calls this directly

Calls 1

Vector2Class · 0.70

Tested by

no test coverage detected