Lines Matching refs:b

63     public static Int2 add(Int2 a, Int2 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 Int2 add(Int2 a, int b) { in add() argument
90 result.x = a.x + b; in add()
91 result.y = a.y + b; in add()
113 public static Int2 sub(Int2 a, Int2 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 Int2 sub(Int2 a, int b) { in sub() argument
140 result.x = a.x - b; in sub()
141 result.y = a.y - b; in sub()
163 public static Int2 mul(Int2 a, Int2 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 Int2 mul(Int2 a, int b) { in mul() argument
190 result.x = a.x * b; in mul()
191 result.y = a.y * b; in mul()
213 public static Int2 div(Int2 a, Int2 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 Int2 div(Int2 a, int b) { in div() argument
240 result.x = a.x / b; in div()
241 result.y = a.y / b; in div()
263 public static Int2 mod(Int2 a, Int2 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 Int2 mod(Int2 a, int b) { in mod() argument
290 result.x = a.x % b; in mod()
291 result.y = a.y % b; in mod()
330 public static int dotProduct(Int2 a, Int2 b) { in dotProduct() argument
331 return (int)((b.x * a.x) + (b.y * a.y)); in dotProduct()
361 public void setValues(int a, int b) { in setValues() argument
363 this.y = b; in setValues()