added Vertex method to allow for +=
This commit is contained in:
parent
443363a7a4
commit
23f343a608
@ -95,6 +95,8 @@ class Vertex(list):
|
||||
# for now just assume type(other) = Vertex... bad, I know
|
||||
return Vertex(self.x + other.x, self.y + other.y, self.z + other.z)
|
||||
|
||||
__iadd__ = __add__
|
||||
|
||||
def __radd__(self, other):
|
||||
return other + self
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user