Lines Matching full:byte
25 public byte x;
26 public byte y;
31 public Byte2(byte initX, byte initY) {
61 result.x = (byte)(a.x + b.x);
62 result.y = (byte)(a.y + b.y);
72 public void add(byte value) {
84 public static Byte2 add(Byte2 a, byte b) {
86 result.x = (byte)(a.x + b);
87 result.y = (byte)(a.y + b);
111 result.x = (byte)(a.x - b.x);
112 result.y = (byte)(a.y - b.y);
122 public void sub(byte value) {
134 public static Byte2 sub(Byte2 a, byte b) {
136 result.x = (byte)(a.x - b);
137 result.y = (byte)(a.y - b);
161 result.x = (byte)(a.x * b.x);
162 result.y = (byte)(a.y * b.y);
172 public void mul(byte value) {
184 public static Byte2 mul(Byte2 a, byte b) {
186 result.x = (byte)(a.x * b);
187 result.y = (byte)(a.y * b);
211 result.x = (byte)(a.x / b.x);
212 result.y = (byte)(a.y / b.y);
222 public void div(byte value) {
234 public static Byte2 div(Byte2 a, byte b) {
236 result.x = (byte)(a.x / b);
237 result.y = (byte)(a.y / b);
247 public byte length() {
255 this.x = (byte)(-x);
256 this.y = (byte)(-y);
265 public byte dotProduct(Byte2 a) {
266 return (byte)((x * a.x) + (y * a.y));
276 public static byte dotProduct(Byte2 a, Byte2 b) {
277 return (byte)((b.x * a.x) + (b.y * a.y));
286 public void addMultiple(Byte2 a, byte factor) {
307 public void setValues(byte a, byte b) {
317 public byte elementSum() {
318 return (byte)(x + y);
327 public byte get(int i) {
344 public void setAt(int i, byte value) {
363 public void addAt(int i, byte value) {
382 public void copyTo(byte[] data, int offset) {