Lines Matching refs:b

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