Lines Matching refs:a
59 public void add(Short3 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 Short3 add(Short3 a, Short3 b) { in add() argument
74 result.x = (short)(a.x + b.x); in add()
75 result.y = (short)(a.y + b.y); in add()
76 result.z = (short)(a.z + b.z); in add()
99 public static Short3 add(Short3 a, short b) { in add() argument
101 result.x = (short)(a.x + b); in add()
102 result.y = (short)(a.y + b); in add()
103 result.z = (short)(a.z + b); in add()
113 public void sub(Short3 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 Short3 sub(Short3 a, Short3 b) { in sub() argument
128 result.x = (short)(a.x - b.x); in sub()
129 result.y = (short)(a.y - b.y); in sub()
130 result.z = (short)(a.z - b.z); in sub()
153 public static Short3 sub(Short3 a, short b) { in sub() argument
155 result.x = (short)(a.x - b); in sub()
156 result.y = (short)(a.y - b); in sub()
157 result.z = (short)(a.z - b); in sub()
167 public void mul(Short3 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 Short3 mul(Short3 a, Short3 b) { in mul() argument
182 result.x = (short)(a.x * b.x); in mul()
183 result.y = (short)(a.y * b.y); in mul()
184 result.z = (short)(a.z * b.z); in mul()
207 public static Short3 mul(Short3 a, short b) { in mul() argument
209 result.x = (short)(a.x * b); in mul()
210 result.y = (short)(a.y * b); in mul()
211 result.z = (short)(a.z * b); in mul()
221 public void div(Short3 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 Short3 div(Short3 a, Short3 b) { in div() argument
236 result.x = (short)(a.x / b.x); in div()
237 result.y = (short)(a.y / b.y); in div()
238 result.z = (short)(a.z / b.z); in div()
261 public static Short3 div(Short3 a, short b) { in div() argument
263 result.x = (short)(a.x / b); in div()
264 result.y = (short)(a.y / b); in div()
265 result.z = (short)(a.z / b); in div()
275 public void mod(Short3 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 Short3 mod(Short3 a, Short3 b) { in mod() argument
290 result.x = (short)(a.x % b.x); in mod()
291 result.y = (short)(a.y % b.y); in mod()
292 result.z = (short)(a.z % b.z); in mod()
315 public static Short3 mod(Short3 a, short b) { in mod() argument
317 result.x = (short)(a.x % b); in mod()
318 result.y = (short)(a.y % b); in mod()
319 result.z = (short)(a.z % b); in mod()
348 public short dotProduct(Short3 a) { in dotProduct() argument
349 return (short)((x * a.x) + (y * a.y) + (z * a.z)); in dotProduct()
359 public static short dotProduct(Short3 a, Short3 b) { in dotProduct() argument
360 return (short)((b.x * a.x) + (b.y * a.y) + (b.z * a.z)); in dotProduct()
369 public void addMultiple(Short3 a, short 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(Short3 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(short a, short b, short c) { in setValues() argument
394 this.x = a; in setValues()