Methods Summary |
---|
public static android.renderscript.Float4 | add(android.renderscript.Float4 a, android.renderscript.Float4 b)
Float4 res = new Float4();
res.x = a.x + b.x;
res.y = a.y + b.y;
res.z = a.z + b.z;
res.w = a.w + b.w;
return res;
|
public void | add(android.renderscript.Float4 value)
x += value.x;
y += value.y;
z += value.z;
w += value.w;
|
public void | add(float value)
x += value;
y += value;
z += value;
w += value;
|
public static android.renderscript.Float4 | add(android.renderscript.Float4 a, float b)
Float4 res = new Float4();
res.x = a.x + b;
res.y = a.y + b;
res.z = a.z + b;
res.w = a.w + b;
return res;
|
public void | addAt(int i, float 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.Float4 a, float factor)
x += a.x * factor;
y += a.y * factor;
z += a.z * factor;
w += a.w * factor;
|
public void | copyTo(float[] data, int offset)
data[offset] = x;
data[offset + 1] = y;
data[offset + 2] = z;
data[offset + 3] = w;
|
public void | div(android.renderscript.Float4 value)
x /= value.x;
y /= value.y;
z /= value.z;
w /= value.w;
|
public void | div(float value)
x /= value;
y /= value;
z /= value;
w /= value;
|
public static android.renderscript.Float4 | div(android.renderscript.Float4 a, float b)
Float4 res = new Float4();
res.x = a.x / b;
res.y = a.y / b;
res.z = a.z / b;
res.w = a.w / b;
return res;
|
public static android.renderscript.Float4 | div(android.renderscript.Float4 a, android.renderscript.Float4 b)
Float4 res = new Float4();
res.x = a.x / b.x;
res.y = a.y / b.y;
res.z = a.z / b.z;
res.w = a.w / b.w;
return res;
|
public float | dotProduct(android.renderscript.Float4 a)
return (x * a.x) + (y * a.y) + (z * a.z) + (w * a.w);
|
public static float | dotProduct(android.renderscript.Float4 a, android.renderscript.Float4 b)
return (b.x * a.x) + (b.y * a.y) + (b.z * a.z) + (b.w * a.w);
|
public float | elementSum()
return x + y + z + w;
|
public float | get(int i)
switch (i) {
case 0:
return x;
case 1:
return y;
case 2:
return z;
case 3:
return w;
default:
throw new IndexOutOfBoundsException("Index: i");
}
|
public int | length()
return 4;
|
public void | mul(android.renderscript.Float4 value)
x *= value.x;
y *= value.y;
z *= value.z;
w *= value.w;
|
public void | mul(float value)
x *= value;
y *= value;
z *= value;
w *= value;
|
public static android.renderscript.Float4 | mul(android.renderscript.Float4 a, android.renderscript.Float4 b)
Float4 res = new Float4();
res.x = a.x * b.x;
res.y = a.y * b.y;
res.z = a.z * b.z;
res.w = a.w * b.w;
return res;
|
public static android.renderscript.Float4 | mul(android.renderscript.Float4 a, float b)
Float4 res = new Float4();
res.x = a.x * b;
res.y = a.y * b;
res.z = a.z * b;
res.w = a.w * b;
return res;
|
public void | negate()
x = -x;
y = -y;
z = -z;
w = -w;
|
public void | set(android.renderscript.Float4 a)
this.x = a.x;
this.y = a.y;
this.z = a.z;
this.w = a.w;
|
public void | setAt(int i, float 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(float x, float y, float z, float w)
this.x = x;
this.y = y;
this.z = z;
this.w = w;
|
public static android.renderscript.Float4 | sub(android.renderscript.Float4 a, float b)
Float4 res = new Float4();
res.x = a.x - b;
res.y = a.y - b;
res.z = a.z - b;
res.w = a.w - b;
return res;
|
public static android.renderscript.Float4 | sub(android.renderscript.Float4 a, android.renderscript.Float4 b)
Float4 res = new Float4();
res.x = a.x - b.x;
res.y = a.y - b.y;
res.z = a.z - b.z;
res.w = a.w - b.w;
return res;
|
public void | sub(android.renderscript.Float4 value)
x -= value.x;
y -= value.y;
z -= value.z;
w -= value.w;
|
public void | sub(float value)
x -= value;
y -= value;
z -= value;
w -= value;
|