Lines Matching refs:b
67 public static Int3 add(Int3 a, Int3 b) { in add() argument
69 result.x = a.x + b.x; in add()
70 result.y = a.y + b.y; in add()
71 result.z = a.z + b.z; in add()
94 public static Int3 add(Int3 a, int b) { in add() argument
96 result.x = a.x + b; in add()
97 result.y = a.y + b; in add()
98 result.z = a.z + b; in add()
121 public static Int3 sub(Int3 a, Int3 b) { in sub() argument
123 result.x = a.x - b.x; in sub()
124 result.y = a.y - b.y; in sub()
125 result.z = a.z - b.z; in sub()
148 public static Int3 sub(Int3 a, int b) { in sub() argument
150 result.x = a.x - b; in sub()
151 result.y = a.y - b; in sub()
152 result.z = a.z - b; in sub()
175 public static Int3 mul(Int3 a, Int3 b) { in mul() argument
177 result.x = a.x * b.x; in mul()
178 result.y = a.y * b.y; in mul()
179 result.z = a.z * b.z; in mul()
202 public static Int3 mul(Int3 a, int b) { in mul() argument
204 result.x = a.x * b; in mul()
205 result.y = a.y * b; in mul()
206 result.z = a.z * b; in mul()
229 public static Int3 div(Int3 a, Int3 b) { in div() argument
231 result.x = a.x / b.x; in div()
232 result.y = a.y / b.y; in div()
233 result.z = a.z / b.z; in div()
256 public static Int3 div(Int3 a, int b) { in div() argument
258 result.x = a.x / b; in div()
259 result.y = a.y / b; in div()
260 result.z = a.z / b; in div()
283 public static Int3 mod(Int3 a, Int3 b) { in mod() argument
285 result.x = a.x % b.x; in mod()
286 result.y = a.y % b.y; in mod()
287 result.z = a.z % b.z; in mod()
310 public static Int3 mod(Int3 a, int b) { in mod() argument
312 result.x = a.x % b; in mod()
313 result.y = a.y % b; in mod()
314 result.z = a.z % b; in mod()
354 public static int dotProduct(Int3 a, Int3 b) { in dotProduct() argument
355 return (int)((b.x * a.x) + (b.y * a.y) + (b.z * a.z)); in dotProduct()
388 public void setValues(int a, int b, int c) { in setValues() argument
390 this.y = b; in setValues()