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