Lines Matching refs:a
52 public void add(Byte4 a) { in add() argument
53 this.x += a.x; in add()
54 this.y += a.y; in add()
55 this.z += a.z; in add()
56 this.w += a.w; in add()
66 public static Byte4 add(Byte4 a, Byte4 b) { in add() argument
68 result.x = (byte)(a.x + b.x); in add()
69 result.y = (byte)(a.y + b.y); in add()
70 result.z = (byte)(a.z + b.z); in add()
71 result.w = (byte)(a.w + b.w); in add()
95 public static Byte4 add(Byte4 a, byte b) { in add() argument
97 result.x = (byte)(a.x + b); in add()
98 result.y = (byte)(a.y + b); in add()
99 result.z = (byte)(a.z + b); in add()
100 result.w = (byte)(a.w + b); in add()
110 public void sub(Byte4 a) { in sub() argument
111 this.x -= a.x; in sub()
112 this.y -= a.y; in sub()
113 this.z -= a.z; in sub()
114 this.w -= a.w; in sub()
124 public static Byte4 sub(Byte4 a, Byte4 b) { in sub() argument
126 result.x = (byte)(a.x - b.x); in sub()
127 result.y = (byte)(a.y - b.y); in sub()
128 result.z = (byte)(a.z - b.z); in sub()
129 result.w = (byte)(a.w - b.w); in sub()
153 public static Byte4 sub(Byte4 a, byte b) { in sub() argument
155 result.x = (byte)(a.x - b); in sub()
156 result.y = (byte)(a.y - b); in sub()
157 result.z = (byte)(a.z - b); in sub()
158 result.w = (byte)(a.w - b); in sub()
168 public void mul(Byte4 a) { in mul() argument
169 this.x *= a.x; in mul()
170 this.y *= a.y; in mul()
171 this.z *= a.z; in mul()
172 this.w *= a.w; in mul()
182 public static Byte4 mul(Byte4 a, Byte4 b) { in mul() argument
184 result.x = (byte)(a.x * b.x); in mul()
185 result.y = (byte)(a.y * b.y); in mul()
186 result.z = (byte)(a.z * b.z); in mul()
187 result.w = (byte)(a.w * b.w); in mul()
211 public static Byte4 mul(Byte4 a, byte b) { in mul() argument
213 result.x = (byte)(a.x * b); in mul()
214 result.y = (byte)(a.y * b); in mul()
215 result.z = (byte)(a.z * b); in mul()
216 result.w = (byte)(a.w * b); in mul()
226 public void div(Byte4 a) { in div() argument
227 this.x /= a.x; in div()
228 this.y /= a.y; in div()
229 this.z /= a.z; in div()
230 this.w /= a.w; in div()
240 public static Byte4 div(Byte4 a, Byte4 b) { in div() argument
242 result.x = (byte)(a.x / b.x); in div()
243 result.y = (byte)(a.y / b.y); in div()
244 result.z = (byte)(a.z / b.z); in div()
245 result.w = (byte)(a.w / b.w); in div()
269 public static Byte4 div(Byte4 a, byte b) { in div() argument
271 result.x = (byte)(a.x / b); in div()
272 result.y = (byte)(a.y / b); in div()
273 result.z = (byte)(a.z / b); in div()
274 result.w = (byte)(a.w / b); in div()
304 public byte dotProduct(Byte4 a) { in dotProduct() argument
305 return (byte)((x * a.x) + (y * a.y) + (z * a.z) + (w * a.w)); in dotProduct()
315 public static byte dotProduct(Byte4 a, Byte4 b) { in dotProduct() argument
316 return (byte)((b.x * a.x) + (b.y * a.y) + (b.z * a.z) + (b.w * a.w)); in dotProduct()
325 public void addMultiple(Byte4 a, byte factor) { in addMultiple() argument
326 x += a.x * factor; in addMultiple()
327 y += a.y * factor; in addMultiple()
328 z += a.z * factor; in addMultiple()
329 w += a.w * factor; in addMultiple()
337 public void set(Byte4 a) { in set() argument
338 this.x = a.x; in set()
339 this.y = a.y; in set()
340 this.z = a.z; in set()
341 this.w = a.w; in set()
352 public void setValues(byte a, byte b, byte c, byte d) { in setValues() argument
353 this.x = a; in setValues()