Lines Matching refs:a

56     public void add(Long2 a) {  in add()  argument
57 this.x += a.x; in add()
58 this.y += a.y; in add()
68 public static Long2 add(Long2 a, Long2 b) { in add() argument
70 result.x = a.x + b.x; in add()
71 result.y = a.y + b.y; in add()
93 public static Long2 add(Long2 a, long b) { in add() argument
95 result.x = a.x + b; in add()
96 result.y = a.y + b; in add()
106 public void sub(Long2 a) { in sub() argument
107 this.x -= a.x; in sub()
108 this.y -= a.y; in sub()
118 public static Long2 sub(Long2 a, Long2 b) { in sub() argument
120 result.x = a.x - b.x; in sub()
121 result.y = a.y - b.y; in sub()
143 public static Long2 sub(Long2 a, long b) { in sub() argument
145 result.x = a.x - b; in sub()
146 result.y = a.y - b; in sub()
156 public void mul(Long2 a) { in mul() argument
157 this.x *= a.x; in mul()
158 this.y *= a.y; in mul()
168 public static Long2 mul(Long2 a, Long2 b) { in mul() argument
170 result.x = a.x * b.x; in mul()
171 result.y = a.y * b.y; in mul()
193 public static Long2 mul(Long2 a, long b) { in mul() argument
195 result.x = a.x * b; in mul()
196 result.y = a.y * b; in mul()
206 public void div(Long2 a) { in div() argument
207 this.x /= a.x; in div()
208 this.y /= a.y; in div()
218 public static Long2 div(Long2 a, Long2 b) { in div() argument
220 result.x = a.x / b.x; in div()
221 result.y = a.y / b.y; in div()
243 public static Long2 div(Long2 a, long b) { in div() argument
245 result.x = a.x / b; in div()
246 result.y = a.y / b; in div()
256 public void mod(Long2 a) { in mod() argument
257 this.x %= a.x; in mod()
258 this.y %= a.y; in mod()
268 public static Long2 mod(Long2 a, Long2 b) { in mod() argument
270 result.x = a.x % b.x; in mod()
271 result.y = a.y % b.y; in mod()
293 public static Long2 mod(Long2 a, long b) { in mod() argument
295 result.x = a.x % b; in mod()
296 result.y = a.y % b; in mod()
324 public long dotProduct(Long2 a) { in dotProduct() argument
325 return (long)((x * a.x) + (y * a.y)); in dotProduct()
335 public static long dotProduct(Long2 a, Long2 b) { in dotProduct() argument
336 return (long)((b.x * a.x) + (b.y * a.y)); in dotProduct()
345 public void addMultiple(Long2 a, long factor) { in addMultiple() argument
346 x += a.x * factor; in addMultiple()
347 y += a.y * factor; in addMultiple()
355 public void set(Long2 a) { in set() argument
356 this.x = a.x; in set()
357 this.y = a.y; in set()
366 public void setValues(long a, long b) { in setValues() argument
367 this.x = a; in setValues()