Lines Matching refs:a

59     public void add(Long3 a) {  in add()  argument
60 this.x += a.x; in add()
61 this.y += a.y; in add()
62 this.z += a.z; in add()
72 public static Long3 add(Long3 a, Long3 b) { in add() argument
74 result.x = a.x + b.x; in add()
75 result.y = a.y + b.y; in add()
76 result.z = a.z + b.z; in add()
99 public static Long3 add(Long3 a, long b) { in add() argument
101 result.x = a.x + b; in add()
102 result.y = a.y + b; in add()
103 result.z = a.z + b; in add()
113 public void sub(Long3 a) { in sub() argument
114 this.x -= a.x; in sub()
115 this.y -= a.y; in sub()
116 this.z -= a.z; in sub()
126 public static Long3 sub(Long3 a, Long3 b) { in sub() argument
128 result.x = a.x - b.x; in sub()
129 result.y = a.y - b.y; in sub()
130 result.z = a.z - b.z; in sub()
153 public static Long3 sub(Long3 a, long b) { in sub() argument
155 result.x = a.x - b; in sub()
156 result.y = a.y - b; in sub()
157 result.z = a.z - b; in sub()
167 public void mul(Long3 a) { in mul() argument
168 this.x *= a.x; in mul()
169 this.y *= a.y; in mul()
170 this.z *= a.z; in mul()
180 public static Long3 mul(Long3 a, Long3 b) { in mul() argument
182 result.x = a.x * b.x; in mul()
183 result.y = a.y * b.y; in mul()
184 result.z = a.z * b.z; in mul()
207 public static Long3 mul(Long3 a, long b) { in mul() argument
209 result.x = a.x * b; in mul()
210 result.y = a.y * b; in mul()
211 result.z = a.z * b; in mul()
221 public void div(Long3 a) { in div() argument
222 this.x /= a.x; in div()
223 this.y /= a.y; in div()
224 this.z /= a.z; in div()
234 public static Long3 div(Long3 a, Long3 b) { in div() argument
236 result.x = a.x / b.x; in div()
237 result.y = a.y / b.y; in div()
238 result.z = a.z / b.z; in div()
261 public static Long3 div(Long3 a, long b) { in div() argument
263 result.x = a.x / b; in div()
264 result.y = a.y / b; in div()
265 result.z = a.z / b; in div()
275 public void mod(Long3 a) { in mod() argument
276 this.x %= a.x; in mod()
277 this.y %= a.y; in mod()
278 this.z %= a.z; in mod()
288 public static Long3 mod(Long3 a, Long3 b) { in mod() argument
290 result.x = a.x % b.x; in mod()
291 result.y = a.y % b.y; in mod()
292 result.z = a.z % b.z; in mod()
315 public static Long3 mod(Long3 a, long b) { in mod() argument
317 result.x = a.x % b; in mod()
318 result.y = a.y % b; in mod()
319 result.z = a.z % b; in mod()
348 public long dotProduct(Long3 a) { in dotProduct() argument
349 return (long)((x * a.x) + (y * a.y) + (z * a.z)); in dotProduct()
359 public static long dotProduct(Long3 a, Long3 b) { in dotProduct() argument
360 return (long)((b.x * a.x) + (b.y * a.y) + (b.z * a.z)); in dotProduct()
369 public void addMultiple(Long3 a, long factor) { in addMultiple() argument
370 x += a.x * factor; in addMultiple()
371 y += a.y * factor; in addMultiple()
372 z += a.z * factor; in addMultiple()
380 public void set(Long3 a) { in set() argument
381 this.x = a.x; in set()
382 this.y = a.y; in set()
383 this.z = a.z; in set()
393 public void setValues(long a, long b, long c) { in setValues() argument
394 this.x = a; in setValues()