Lines Matching refs:a

57     public void add(Int4 a) {  in add()  argument
58 this.x += a.x; in add()
59 this.y += a.y; in add()
60 this.z += a.z; in add()
61 this.w += a.w; in add()
71 public static Int4 add(Int4 a, Int4 b) { in add() argument
73 result.x = a.x + b.x; in add()
74 result.y = a.y + b.y; in add()
75 result.z = a.z + b.z; in add()
76 result.w = a.w + b.w; in add()
100 public static Int4 add(Int4 a, int b) { in add() argument
102 result.x = a.x + b; in add()
103 result.y = a.y + b; in add()
104 result.z = a.z + b; in add()
105 result.w = a.w + b; in add()
115 public void sub(Int4 a) { in sub() argument
116 this.x -= a.x; in sub()
117 this.y -= a.y; in sub()
118 this.z -= a.z; in sub()
119 this.w -= a.w; in sub()
129 public static Int4 sub(Int4 a, Int4 b) { in sub() argument
131 result.x = a.x - b.x; in sub()
132 result.y = a.y - b.y; in sub()
133 result.z = a.z - b.z; in sub()
134 result.w = a.w - b.w; in sub()
158 public static Int4 sub(Int4 a, int b) { in sub() argument
160 result.x = a.x - b; in sub()
161 result.y = a.y - b; in sub()
162 result.z = a.z - b; in sub()
163 result.w = a.w - b; in sub()
173 public void mul(Int4 a) { in mul() argument
174 this.x *= a.x; in mul()
175 this.y *= a.y; in mul()
176 this.z *= a.z; in mul()
177 this.w *= a.w; in mul()
187 public static Int4 mul(Int4 a, Int4 b) { in mul() argument
189 result.x = a.x * b.x; in mul()
190 result.y = a.y * b.y; in mul()
191 result.z = a.z * b.z; in mul()
192 result.w = a.w * b.w; in mul()
216 public static Int4 mul(Int4 a, int b) { in mul() argument
218 result.x = a.x * b; in mul()
219 result.y = a.y * b; in mul()
220 result.z = a.z * b; in mul()
221 result.w = a.w * b; in mul()
231 public void div(Int4 a) { in div() argument
232 this.x /= a.x; in div()
233 this.y /= a.y; in div()
234 this.z /= a.z; in div()
235 this.w /= a.w; in div()
245 public static Int4 div(Int4 a, Int4 b) { in div() argument
247 result.x = a.x / b.x; in div()
248 result.y = a.y / b.y; in div()
249 result.z = a.z / b.z; in div()
250 result.w = a.w / b.w; in div()
274 public static Int4 div(Int4 a, int b) { in div() argument
276 result.x = a.x / b; in div()
277 result.y = a.y / b; in div()
278 result.z = a.z / b; in div()
279 result.w = a.w / b; in div()
289 public void mod(Int4 a) { in mod() argument
290 this.x %= a.x; in mod()
291 this.y %= a.y; in mod()
292 this.z %= a.z; in mod()
293 this.w %= a.w; in mod()
303 public static Int4 mod(Int4 a, Int4 b) { in mod() argument
305 result.x = a.x % b.x; in mod()
306 result.y = a.y % b.y; in mod()
307 result.z = a.z % b.z; in mod()
308 result.w = a.w % b.w; in mod()
332 public static Int4 mod(Int4 a, int b) { in mod() argument
334 result.x = a.x % b; in mod()
335 result.y = a.y % b; in mod()
336 result.z = a.z % b; in mod()
337 result.w = a.w % b; in mod()
367 public int dotProduct(Int4 a) { in dotProduct() argument
368 return (int)((x * a.x) + (y * a.y) + (z * a.z) + (w * a.w)); in dotProduct()
378 public static int dotProduct(Int4 a, Int4 b) { in dotProduct() argument
379 return (int)((b.x * a.x) + (b.y * a.y) + (b.z * a.z) + (b.w * a.w)); in dotProduct()
388 public void addMultiple(Int4 a, int factor) { in addMultiple() argument
389 x += a.x * factor; in addMultiple()
390 y += a.y * factor; in addMultiple()
391 z += a.z * factor; in addMultiple()
392 w += a.w * factor; in addMultiple()
400 public void set(Int4 a) { in set() argument
401 this.x = a.x; in set()
402 this.y = a.y; in set()
403 this.z = a.z; in set()
404 this.w = a.w; in set()
415 public void setValues(int a, int b, int c, int d) { in setValues() argument
416 this.x = a; in setValues()