Methods Summary |
---|
public static android.renderscript.Double4 | add(android.renderscript.Double4 a, android.renderscript.Double4 b)
Double4 res = new Double4();
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.Double4 value)
x += value.x;
y += value.y;
z += value.z;
w += value.w;
|
public void | add(double value)
x += value;
y += value;
z += value;
w += value;
|
public static android.renderscript.Double4 | add(android.renderscript.Double4 a, double b)
Double4 res = new Double4();
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, double 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.Double4 a, double factor)
x += a.x * factor;
y += a.y * factor;
z += a.z * factor;
w += a.w * factor;
|
public void | copyTo(double[] data, int offset)
data[offset] = x;
data[offset + 1] = y;
data[offset + 2] = z;
data[offset + 3] = w;
|
public void | div(android.renderscript.Double4 value)
x /= value.x;
y /= value.y;
z /= value.z;
w /= value.w;
|
public void | div(double value)
x /= value;
y /= value;
z /= value;
w /= value;
|
public static android.renderscript.Double4 | div(android.renderscript.Double4 a, double b)
Double4 res = new Double4();
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.Double4 | div(android.renderscript.Double4 a, android.renderscript.Double4 b)
Double4 res = new Double4();
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 double | dotProduct(android.renderscript.Double4 a)
return (x * a.x) + (y * a.y) + (z * a.z) + (w * a.w);
|
public static double | dotProduct(android.renderscript.Double4 a, android.renderscript.Double4 b)
return (b.x * a.x) + (b.y * a.y) + (b.z * a.z) + (b.w * a.w);
|
public double | elementSum()
return x + y + z + w;
|
public double | 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.Double4 value)
x *= value.x;
y *= value.y;
z *= value.z;
w *= value.w;
|
public void | mul(double value)
x *= value;
y *= value;
z *= value;
w *= value;
|
public static android.renderscript.Double4 | mul(android.renderscript.Double4 a, android.renderscript.Double4 b)
Double4 res = new Double4();
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.Double4 | mul(android.renderscript.Double4 a, double b)
Double4 res = new Double4();
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.Double4 a)
this.x = a.x;
this.y = a.y;
this.z = a.z;
this.w = a.w;
|
public void | setAt(int i, double 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(double x, double y, double z, double w)
this.x = x;
this.y = y;
this.z = z;
this.w = w;
|
public static android.renderscript.Double4 | sub(android.renderscript.Double4 a, double b)
Double4 res = new Double4();
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.Double4 | sub(android.renderscript.Double4 a, android.renderscript.Double4 b)
Double4 res = new Double4();
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.Double4 value)
x -= value.x;
y -= value.y;
z -= value.z;
w -= value.w;
|
public void | sub(double value)
x -= value;
y -= value;
z -= value;
w -= value;
|