• Home
  • Raw
  • Download

Lines Matching refs:b

72     public static Int3 add(Int3 a, Int3 b) {  in add()  argument
74 result.x = a.x + b.x; in add()
75 result.y = a.y + b.y; in add()
76 result.z = a.z + b.z; in add()
99 public static Int3 add(Int3 a, int b) { in add() argument
101 result.x = a.x + b; in add()
102 result.y = a.y + b; in add()
103 result.z = a.z + b; in add()
126 public static Int3 sub(Int3 a, Int3 b) { in sub() argument
128 result.x = a.x - b.x; in sub()
129 result.y = a.y - b.y; in sub()
130 result.z = a.z - b.z; in sub()
153 public static Int3 sub(Int3 a, int b) { in sub() argument
155 result.x = a.x - b; in sub()
156 result.y = a.y - b; in sub()
157 result.z = a.z - b; in sub()
180 public static Int3 mul(Int3 a, Int3 b) { in mul() argument
182 result.x = a.x * b.x; in mul()
183 result.y = a.y * b.y; in mul()
184 result.z = a.z * b.z; in mul()
207 public static Int3 mul(Int3 a, int b) { in mul() argument
209 result.x = a.x * b; in mul()
210 result.y = a.y * b; in mul()
211 result.z = a.z * b; in mul()
234 public static Int3 div(Int3 a, Int3 b) { in div() argument
236 result.x = a.x / b.x; in div()
237 result.y = a.y / b.y; in div()
238 result.z = a.z / b.z; in div()
261 public static Int3 div(Int3 a, int b) { in div() argument
263 result.x = a.x / b; in div()
264 result.y = a.y / b; in div()
265 result.z = a.z / b; in div()
288 public static Int3 mod(Int3 a, Int3 b) { in mod() argument
290 result.x = a.x % b.x; in mod()
291 result.y = a.y % b.y; in mod()
292 result.z = a.z % b.z; in mod()
315 public static Int3 mod(Int3 a, int b) { in mod() argument
317 result.x = a.x % b; in mod()
318 result.y = a.y % b; in mod()
319 result.z = a.z % b; in mod()
359 public static int dotProduct(Int3 a, Int3 b) { in dotProduct() argument
360 return (int)((b.x * a.x) + (b.y * a.y) + (b.z * a.z)); in dotProduct()
393 public void setValues(int a, int b, int c) { in setValues() argument
395 this.y = b; in setValues()