Lines Matching refs:a
54 public void add(Byte3 a) { in add() argument
55 this.x += a.x; in add()
56 this.y += a.y; in add()
57 this.z += a.z; in add()
67 public static Byte3 add(Byte3 a, Byte3 b) { in add() argument
69 result.x = (byte)(a.x + b.x); in add()
70 result.y = (byte)(a.y + b.y); in add()
71 result.z = (byte)(a.z + b.z); in add()
94 public static Byte3 add(Byte3 a, byte b) { in add() argument
96 result.x = (byte)(a.x + b); in add()
97 result.y = (byte)(a.y + b); in add()
98 result.z = (byte)(a.z + b); in add()
108 public void sub(Byte3 a) { in sub() argument
109 this.x -= a.x; in sub()
110 this.y -= a.y; in sub()
111 this.z -= a.z; in sub()
121 public static Byte3 sub(Byte3 a, Byte3 b) { in sub() argument
123 result.x = (byte)(a.x - b.x); in sub()
124 result.y = (byte)(a.y - b.y); in sub()
125 result.z = (byte)(a.z - b.z); in sub()
148 public static Byte3 sub(Byte3 a, byte b) { in sub() argument
150 result.x = (byte)(a.x - b); in sub()
151 result.y = (byte)(a.y - b); in sub()
152 result.z = (byte)(a.z - b); in sub()
162 public void mul(Byte3 a) { in mul() argument
163 this.x *= a.x; in mul()
164 this.y *= a.y; in mul()
165 this.z *= a.z; in mul()
175 public static Byte3 mul(Byte3 a, Byte3 b) { in mul() argument
177 result.x = (byte)(a.x * b.x); in mul()
178 result.y = (byte)(a.y * b.y); in mul()
179 result.z = (byte)(a.z * b.z); in mul()
202 public static Byte3 mul(Byte3 a, byte b) { in mul() argument
204 result.x = (byte)(a.x * b); in mul()
205 result.y = (byte)(a.y * b); in mul()
206 result.z = (byte)(a.z * b); in mul()
216 public void div(Byte3 a) { in div() argument
217 this.x /= a.x; in div()
218 this.y /= a.y; in div()
219 this.z /= a.z; in div()
229 public static Byte3 div(Byte3 a, Byte3 b) { in div() argument
231 result.x = (byte)(a.x / b.x); in div()
232 result.y = (byte)(a.y / b.y); in div()
233 result.z = (byte)(a.z / b.z); in div()
256 public static Byte3 div(Byte3 a, byte b) { in div() argument
258 result.x = (byte)(a.x / b); in div()
259 result.y = (byte)(a.y / b); in div()
260 result.z = (byte)(a.z / b); in div()
289 public byte dotProduct(Byte3 a) { in dotProduct() argument
290 return (byte)((byte)((byte)(x * a.x) + (byte)(y * a.y)) + (byte)(z * a.z)); in dotProduct()
300 public static byte dotProduct(Byte3 a, Byte3 b) { in dotProduct() argument
301 return (byte)((byte)((byte)(b.x * a.x) + (byte)(b.y * a.y)) + (byte)(b.z * a.z)); in dotProduct()
310 public void addMultiple(Byte3 a, byte factor) { in addMultiple() argument
311 x += a.x * factor; in addMultiple()
312 y += a.y * factor; in addMultiple()
313 z += a.z * factor; in addMultiple()
321 public void set(Byte3 a) { in set() argument
322 this.x = a.x; in set()
323 this.y = a.y; in set()
324 this.z = a.z; in set()
334 public void setValues(byte a, byte b, byte c) { in setValues() argument
335 this.x = a; in setValues()