Lines Matching refs:b
63 public static Byte2 add(Byte2 a, Byte2 b) { in add() argument
65 result.x = (byte)(a.x + b.x); in add()
66 result.y = (byte)(a.y + b.y); in add()
88 public static Byte2 add(Byte2 a, byte b) { in add() argument
90 result.x = (byte)(a.x + b); in add()
91 result.y = (byte)(a.y + b); in add()
113 public static Byte2 sub(Byte2 a, Byte2 b) { in sub() argument
115 result.x = (byte)(a.x - b.x); in sub()
116 result.y = (byte)(a.y - b.y); in sub()
138 public static Byte2 sub(Byte2 a, byte b) { in sub() argument
140 result.x = (byte)(a.x - b); in sub()
141 result.y = (byte)(a.y - b); in sub()
163 public static Byte2 mul(Byte2 a, Byte2 b) { in mul() argument
165 result.x = (byte)(a.x * b.x); in mul()
166 result.y = (byte)(a.y * b.y); in mul()
188 public static Byte2 mul(Byte2 a, byte b) { in mul() argument
190 result.x = (byte)(a.x * b); in mul()
191 result.y = (byte)(a.y * b); in mul()
213 public static Byte2 div(Byte2 a, Byte2 b) { in div() argument
215 result.x = (byte)(a.x / b.x); in div()
216 result.y = (byte)(a.y / b.y); in div()
238 public static Byte2 div(Byte2 a, byte b) { in div() argument
240 result.x = (byte)(a.x / b); in div()
241 result.y = (byte)(a.y / b); in div()
280 public static byte dotProduct(Byte2 a, Byte2 b) { in dotProduct() argument
281 return (byte)((b.x * a.x) + (b.y * a.y)); in dotProduct()
311 public void setValues(byte a, byte b) { in setValues() argument
313 this.y = b; in setValues()