Lines Matching refs:b

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()
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()
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()
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()
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()
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()
369 public void setValues(short a, short b) { in setValues() argument
371 this.y = b; in setValues()