Lines Matching refs:a
47 public void add(Byte2 a) { in add() argument
48 this.x += a.x; in add()
49 this.y += a.y; in add()
59 public static Byte2 add(Byte2 a, Byte2 b) { in add() argument
61 result.x = (byte)(a.x + b.x); in add()
62 result.y = (byte)(a.y + b.y); in add()
84 public static Byte2 add(Byte2 a, byte b) { in add() argument
86 result.x = (byte)(a.x + b); in add()
87 result.y = (byte)(a.y + b); in add()
97 public void sub(Byte2 a) { in sub() argument
98 this.x -= a.x; in sub()
99 this.y -= a.y; in sub()
109 public static Byte2 sub(Byte2 a, Byte2 b) { in sub() argument
111 result.x = (byte)(a.x - b.x); in sub()
112 result.y = (byte)(a.y - b.y); in sub()
134 public static Byte2 sub(Byte2 a, byte b) { in sub() argument
136 result.x = (byte)(a.x - b); in sub()
137 result.y = (byte)(a.y - b); in sub()
147 public void mul(Byte2 a) { in mul() argument
148 this.x *= a.x; in mul()
149 this.y *= a.y; in mul()
159 public static Byte2 mul(Byte2 a, Byte2 b) { in mul() argument
161 result.x = (byte)(a.x * b.x); in mul()
162 result.y = (byte)(a.y * b.y); in mul()
184 public static Byte2 mul(Byte2 a, byte b) { in mul() argument
186 result.x = (byte)(a.x * b); in mul()
187 result.y = (byte)(a.y * b); in mul()
197 public void div(Byte2 a) { in div() argument
198 this.x /= a.x; in div()
199 this.y /= a.y; in div()
209 public static Byte2 div(Byte2 a, Byte2 b) { in div() argument
211 result.x = (byte)(a.x / b.x); in div()
212 result.y = (byte)(a.y / b.y); in div()
234 public static Byte2 div(Byte2 a, byte b) { in div() argument
236 result.x = (byte)(a.x / b); in div()
237 result.y = (byte)(a.y / b); in div()
265 public byte dotProduct(Byte2 a) { in dotProduct() argument
266 return (byte)((x * a.x) + (y * a.y)); in dotProduct()
276 public static byte dotProduct(Byte2 a, Byte2 b) { in dotProduct() argument
277 return (byte)((b.x * a.x) + (b.y * a.y)); in dotProduct()
286 public void addMultiple(Byte2 a, byte factor) { in addMultiple() argument
287 x += a.x * factor; in addMultiple()
288 y += a.y * factor; in addMultiple()
296 public void set(Byte2 a) { in set() argument
297 this.x = a.x; in set()
298 this.y = a.y; in set()
307 public void setValues(byte a, byte b) { in setValues() argument
308 this.x = a; in setValues()