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

Method __and__

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

Source from the content-addressed store, hash-verified

158 return Vector2(self.x >> obj, self.y >> obj)
159
160 def __and__(self, obj):
161 if isinstance(obj, Vector2):
162 return Vector2(self.x & obj.x, self.y & obj.y)
163 return Vector2(self.x & obj, self.y & obj)
164
165 def __xor__(self, obj):
166 if isinstance(obj, Vector2):

Callers

nothing calls this directly

Calls 1

Vector2Class · 0.70

Tested by

no test coverage detected