We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 274e2dd commit bc75bbfCopy full SHA for bc75bbf
runtime/src/jycessing/core.py
@@ -104,9 +104,14 @@ def __instance_add__(self, *args):
104
105
def __instance_sub__(self, *args):
106
if len(args) == 1:
107
- return PVector.sub(self, args[0], self)
+ v = args[0]
108
+ self.x -= v.x
109
+ self.y -= v.y
110
+ self.z -= v.z
111
else:
- return PVector.sub(self, PVector(*args), self)
112
+ self.x -= args[0]
113
+ self.y -= args[1]
114
+ self.z -= args[2]
115
116
def __instance_mult__(self, o):
117
PVector.mult(self, o, self)
0 commit comments