Lines Matching refs:a

59     public void add(Short2 a) {  in add()  argument
60 this.x += a.x; in add()
61 this.y += a.y; in add()
71 public static Short2 add(Short2 a, Short2 b) { in add() argument
73 result.x = (short)(a.x + b.x); in add()
74 result.y = (short)(a.y + b.y); in add()
96 public static Short2 add(Short2 a, short b) { in add() argument
98 result.x = (short)(a.x + b); in add()
99 result.y = (short)(a.y + b); in add()
109 public void sub(Short2 a) { in sub() argument
110 this.x -= a.x; in sub()
111 this.y -= a.y; in sub()
121 public static Short2 sub(Short2 a, Short2 b) { in sub() argument
123 result.x = (short)(a.x - b.x); in sub()
124 result.y = (short)(a.y - b.y); in sub()
146 public static Short2 sub(Short2 a, short b) { in sub() argument
148 result.x = (short)(a.x - b); in sub()
149 result.y = (short)(a.y - b); in sub()
159 public void mul(Short2 a) { in mul() argument
160 this.x *= a.x; in mul()
161 this.y *= a.y; in mul()
171 public static Short2 mul(Short2 a, Short2 b) { in mul() argument
173 result.x = (short)(a.x * b.x); in mul()
174 result.y = (short)(a.y * b.y); in mul()
196 public static Short2 mul(Short2 a, short b) { in mul() argument
198 result.x = (short)(a.x * b); in mul()
199 result.y = (short)(a.y * b); in mul()
209 public void div(Short2 a) { in div() argument
210 this.x /= a.x; in div()
211 this.y /= a.y; in div()
221 public static Short2 div(Short2 a, Short2 b) { in div() argument
223 result.x = (short)(a.x / b.x); in div()
224 result.y = (short)(a.y / b.y); in div()
246 public static Short2 div(Short2 a, short b) { in div() argument
248 result.x = (short)(a.x / b); in div()
249 result.y = (short)(a.y / b); in div()
259 public void mod(Short2 a) { in mod() argument
260 this.x %= a.x; in mod()
261 this.y %= a.y; in mod()
271 public static Short2 mod(Short2 a, Short2 b) { in mod() argument
273 result.x = (short)(a.x % b.x); in mod()
274 result.y = (short)(a.y % b.y); in mod()
296 public static Short2 mod(Short2 a, short b) { in mod() argument
298 result.x = (short)(a.x % b); in mod()
299 result.y = (short)(a.y % b); in mod()
327 public short dotProduct(Short2 a) { in dotProduct() argument
328 return (short)((x * a.x) + (y * a.y)); in dotProduct()
338 public static short dotProduct(Short2 a, Short2 b) { in dotProduct() argument
339 return (short)((b.x * a.x) + (b.y * a.y)); in dotProduct()
348 public void addMultiple(Short2 a, short factor) { in addMultiple() argument
349 x += a.x * factor; in addMultiple()
350 y += a.y * factor; in addMultiple()
358 public void set(Short2 a) { in set() argument
359 this.x = a.x; in set()
360 this.y = a.y; in set()
369 public void setValues(short a, short b) { in setValues() argument
370 this.x = a; in setValues()