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