Methods Summary |
---|
public void | add(android.renderscript.Int4 a)
this.x += a.x;
this.y += a.y;
this.z += a.z;
this.w += a.w;
|
public static android.renderscript.Int4 | add(android.renderscript.Int4 a, android.renderscript.Int4 b)
Int4 result = new Int4();
result.x = a.x + b.x;
result.y = a.y + b.y;
result.z = a.z + b.z;
result.w = a.w + b.w;
return result;
|
public void | add(int value)
x += value;
y += value;
z += value;
w += value;
|
public static android.renderscript.Int4 | add(android.renderscript.Int4 a, int b)
Int4 result = new Int4();
result.x = a.x + b;
result.y = a.y + b;
result.z = a.z + b;
result.w = a.w + b;
return result;
|
public void | addAt(int i, int value)
switch (i) {
case 0:
x += value;
return;
case 1:
y += value;
return;
case 2:
z += value;
return;
case 3:
w += value;
return;
default:
throw new IndexOutOfBoundsException("Index: i");
}
|
public void | addMultiple(android.renderscript.Int4 a, int factor)
x += a.x * factor;
y += a.y * factor;
z += a.z * factor;
w += a.w * factor;
|
public void | copyTo(int[] data, int offset)
data[offset] = (int)(x);
data[offset + 1] = (int)(y);
data[offset + 2] = (int)(z);
data[offset + 3] = (int)(w);
|
public void | div(android.renderscript.Int4 a)
this.x /= a.x;
this.y /= a.y;
this.z /= a.z;
this.w /= a.w;
|
public static android.renderscript.Int4 | div(android.renderscript.Int4 a, android.renderscript.Int4 b)
Int4 result = new Int4();
result.x = a.x / b.x;
result.y = a.y / b.y;
result.z = a.z / b.z;
result.w = a.w / b.w;
return result;
|
public void | div(int value)
x /= value;
y /= value;
z /= value;
w /= value;
|
public static android.renderscript.Int4 | div(android.renderscript.Int4 a, int b)
Int4 result = new Int4();
result.x = a.x / b;
result.y = a.y / b;
result.z = a.z / b;
result.w = a.w / b;
return result;
|
public int | dotProduct(android.renderscript.Int4 a)
return (int)((x * a.x) + (y * a.y) + (z * a.z) + (w * a.w));
|
public static int | dotProduct(android.renderscript.Int4 a, android.renderscript.Int4 b)
return (int)((b.x * a.x) + (b.y * a.y) + (b.z * a.z) + (b.w * a.w));
|
public int | elementSum()
return (int)(x + y + z + w);
|
public int | get(int i)
switch (i) {
case 0:
return (int)(x);
case 1:
return (int)(y);
case 2:
return (int)(z);
case 3:
return (int)(w);
default:
throw new IndexOutOfBoundsException("Index: i");
}
|
public int | length()
return 4;
|
public void | mod(android.renderscript.Int4 a)
this.x %= a.x;
this.y %= a.y;
this.z %= a.z;
this.w %= a.w;
|
public static android.renderscript.Int4 | mod(android.renderscript.Int4 a, android.renderscript.Int4 b)
Int4 result = new Int4();
result.x = a.x % b.x;
result.y = a.y % b.y;
result.z = a.z % b.z;
result.w = a.w % b.w;
return result;
|
public void | mod(int value)
x %= value;
y %= value;
z %= value;
w %= value;
|
public static android.renderscript.Int4 | mod(android.renderscript.Int4 a, int b)
Int4 result = new Int4();
result.x = a.x % b;
result.y = a.y % b;
result.z = a.z % b;
result.w = a.w % b;
return result;
|
public void | mul(android.renderscript.Int4 a)
this.x *= a.x;
this.y *= a.y;
this.z *= a.z;
this.w *= a.w;
|
public static android.renderscript.Int4 | mul(android.renderscript.Int4 a, android.renderscript.Int4 b)
Int4 result = new Int4();
result.x = a.x * b.x;
result.y = a.y * b.y;
result.z = a.z * b.z;
result.w = a.w * b.w;
return result;
|
public void | mul(int value)
x *= value;
y *= value;
z *= value;
w *= value;
|
public static android.renderscript.Int4 | mul(android.renderscript.Int4 a, int b)
Int4 result = new Int4();
result.x = a.x * b;
result.y = a.y * b;
result.z = a.z * b;
result.w = a.w * b;
return result;
|
public void | negate()
this.x = -x;
this.y = -y;
this.z = -z;
this.w = -w;
|
public void | set(android.renderscript.Int4 a)
this.x = a.x;
this.y = a.y;
this.z = a.z;
this.w = a.w;
|
public void | setAt(int i, int value)
switch (i) {
case 0:
x = value;
return;
case 1:
y = value;
return;
case 2:
z = value;
return;
case 3:
w = value;
return;
default:
throw new IndexOutOfBoundsException("Index: i");
}
|
public void | setValues(int a, int b, int c, int d)
this.x = a;
this.y = b;
this.z = c;
this.w = d;
|
public static android.renderscript.Int4 | sub(android.renderscript.Int4 a, android.renderscript.Int4 b)
Int4 result = new Int4();
result.x = a.x - b.x;
result.y = a.y - b.y;
result.z = a.z - b.z;
result.w = a.w - b.w;
return result;
|
public void | sub(int value)
x -= value;
y -= value;
z -= value;
w -= value;
|
public static android.renderscript.Int4 | sub(android.renderscript.Int4 a, int b)
Int4 result = new Int4();
result.x = a.x - b;
result.y = a.y - b;
result.z = a.z - b;
result.w = a.w - b;
return result;
|
public void | sub(android.renderscript.Int4 a)
this.x -= a.x;
this.y -= a.y;
this.z -= a.z;
this.w -= a.w;
|