Lines Matching full:byte
25 public byte x;
26 public byte y;
27 public byte z;
32 public Byte3(byte initX, byte initY, byte initZ) {
65 result.x = (byte)(a.x + b.x);
66 result.y = (byte)(a.y + b.y);
67 result.z = (byte)(a.z + b.z);
77 public void add(byte value) {
90 public static Byte3 add(Byte3 a, byte b) {
92 result.x = (byte)(a.x + b);
93 result.y = (byte)(a.y + b);
94 result.z = (byte)(a.z + b);
119 result.x = (byte)(a.x - b.x);
120 result.y = (byte)(a.y - b.y);
121 result.z = (byte)(a.z - b.z);
131 public void sub(byte value) {
144 public static Byte3 sub(Byte3 a, byte b) {
146 result.x = (byte)(a.x - b);
147 result.y = (byte)(a.y - b);
148 result.z = (byte)(a.z - b);
173 result.x = (byte)(a.x * b.x);
174 result.y = (byte)(a.y * b.y);
175 result.z = (byte)(a.z * b.z);
185 public void mul(byte value) {
198 public static Byte3 mul(Byte3 a, byte b) {
200 result.x = (byte)(a.x * b);
201 result.y = (byte)(a.y * b);
202 result.z = (byte)(a.z * b);
227 result.x = (byte)(a.x / b.x);
228 result.y = (byte)(a.y / b.y);
229 result.z = (byte)(a.z / b.z);
239 public void div(byte value) {
252 public static Byte3 div(Byte3 a, byte b) {
254 result.x = (byte)(a.x / b);
255 result.y = (byte)(a.y / b);
256 result.z = (byte)(a.z / b);
266 public byte length() {
274 this.x = (byte)(-x);
275 this.y = (byte)(-y);
276 this.z = (byte)(-z);
285 public byte dotProduct(Byte3 a) {
286 return (byte)((byte)((byte)(x * a.x) + (byte)(y * a.y)) + (byte)(z * a.z));
296 public static byte dotProduct(Byte3 a, Byte3 b) {
297 return (byte)((byte)((byte)(b.x * a.x) + (byte)(b.y * a.y)) + (byte)(b.z * a.z));
306 public void addMultiple(Byte3 a, byte factor) {
330 public void setValues(byte a, byte b, byte c) {
341 public byte elementSum() {
342 return (byte)(x + y + z);
351 public byte get(int i) {
370 public void setAt(int i, byte value) {
392 public void addAt(int i, byte value) {
414 public void copyTo(byte[] data, int offset) {