Lines Matching refs:a
51 public void add(Long2 a) { in add() argument
52 this.x += a.x; in add()
53 this.y += a.y; in add()
63 public static Long2 add(Long2 a, Long2 b) { in add() argument
65 result.x = a.x + b.x; in add()
66 result.y = a.y + b.y; in add()
88 public static Long2 add(Long2 a, long b) { in add() argument
90 result.x = a.x + b; in add()
91 result.y = a.y + b; in add()
101 public void sub(Long2 a) { in sub() argument
102 this.x -= a.x; in sub()
103 this.y -= a.y; in sub()
113 public static Long2 sub(Long2 a, Long2 b) { in sub() argument
115 result.x = a.x - b.x; in sub()
116 result.y = a.y - b.y; in sub()
138 public static Long2 sub(Long2 a, long b) { in sub() argument
140 result.x = a.x - b; in sub()
141 result.y = a.y - b; in sub()
151 public void mul(Long2 a) { in mul() argument
152 this.x *= a.x; in mul()
153 this.y *= a.y; in mul()
163 public static Long2 mul(Long2 a, Long2 b) { in mul() argument
165 result.x = a.x * b.x; in mul()
166 result.y = a.y * b.y; in mul()
188 public static Long2 mul(Long2 a, long b) { in mul() argument
190 result.x = a.x * b; in mul()
191 result.y = a.y * b; in mul()
201 public void div(Long2 a) { in div() argument
202 this.x /= a.x; in div()
203 this.y /= a.y; in div()
213 public static Long2 div(Long2 a, Long2 b) { in div() argument
215 result.x = a.x / b.x; in div()
216 result.y = a.y / b.y; in div()
238 public static Long2 div(Long2 a, long b) { in div() argument
240 result.x = a.x / b; in div()
241 result.y = a.y / b; in div()
251 public void mod(Long2 a) { in mod() argument
252 this.x %= a.x; in mod()
253 this.y %= a.y; in mod()
263 public static Long2 mod(Long2 a, Long2 b) { in mod() argument
265 result.x = a.x % b.x; in mod()
266 result.y = a.y % b.y; in mod()
288 public static Long2 mod(Long2 a, long b) { in mod() argument
290 result.x = a.x % b; in mod()
291 result.y = a.y % b; in mod()
319 public long dotProduct(Long2 a) { in dotProduct() argument
320 return (long)((x * a.x) + (y * a.y)); in dotProduct()
330 public static long dotProduct(Long2 a, Long2 b) { in dotProduct() argument
331 return (long)((b.x * a.x) + (b.y * a.y)); in dotProduct()
340 public void addMultiple(Long2 a, long factor) { in addMultiple() argument
341 x += a.x * factor; in addMultiple()
342 y += a.y * factor; in addMultiple()
350 public void set(Long2 a) { in set() argument
351 this.x = a.x; in set()
352 this.y = a.y; in set()
361 public void setValues(long a, long b) { in setValues() argument
362 this.x = a; in setValues()