Methods Summary |
---|
public static android.renderscript.Float3 | add(android.renderscript.Float3 a, android.renderscript.Float3 b)
Float3 res = new Float3();
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.Float3 value)
x += value.x;
y += value.y;
z += value.z;
|
public void | add(float value)
x += value;
y += value;
z += value;
|
public static android.renderscript.Float3 | add(android.renderscript.Float3 a, float b)
Float3 res = new Float3();
res.x = a.x + b;
res.y = a.y + b;
res.z = a.z + 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;
default:
throw new IndexOutOfBoundsException("Index: i");
}
|
public void | addMultiple(android.renderscript.Float3 a, float factor)
x += a.x * factor;
y += a.y * factor;
z += a.z * factor;
|
public void | copyTo(float[] data, int offset)
data[offset] = x;
data[offset + 1] = y;
data[offset + 2] = z;
|
public void | div(android.renderscript.Float3 value)
x /= value.x;
y /= value.y;
z /= value.z;
|
public static android.renderscript.Float3 | div(android.renderscript.Float3 a, android.renderscript.Float3 b)
Float3 res = new Float3();
res.x = a.x / b.x;
res.y = a.y / b.y;
res.z = a.z / b.z;
return res;
|
public void | div(float value)
x /= value;
y /= value;
z /= value;
|
public static android.renderscript.Float3 | div(android.renderscript.Float3 a, float b)
Float3 res = new Float3();
res.x = a.x / b;
res.y = a.y / b;
res.z = a.z / b;
return res;
|
public java.lang.Float | dotProduct(android.renderscript.Float3 a)
return new Float((x * a.x) + (y * a.y) + (z * a.z));
|
public static java.lang.Float | dotProduct(android.renderscript.Float3 a, android.renderscript.Float3 b)
return new Float((b.x * a.x) + (b.y * a.y) + (b.z * a.z));
|
public java.lang.Float | elementSum()
return new Float(x + y + z);
|
public float | 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.Float3 value)
x *= value.x;
y *= value.y;
z *= value.z;
|
public static android.renderscript.Float3 | mul(android.renderscript.Float3 a, android.renderscript.Float3 b)
Float3 res = new Float3();
res.x = a.x * b.x;
res.y = a.y * b.y;
res.z = a.z * b.z;
return res;
|
public void | mul(float value)
x *= value;
y *= value;
z *= value;
|
public static android.renderscript.Float3 | mul(android.renderscript.Float3 a, float b)
Float3 res = new Float3();
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.Float3 a)
this.x = a.x;
this.y = a.y;
this.z = a.z;
|
public void | setAt(int i, float 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(float x, float y, float z)
this.x = x;
this.y = y;
this.z = z;
|
public void | sub(float value)
x -= value;
y -= value;
z -= value;
|
public static android.renderscript.Float3 | sub(android.renderscript.Float3 a, float b)
Float3 res = new Float3();
res.x = a.x - b;
res.y = a.y - b;
res.z = a.z - b;
return res;
|
public void | sub(android.renderscript.Float3 value)
x -= value.x;
y -= value.y;
z -= value.z;
|
public static android.renderscript.Float3 | sub(android.renderscript.Float3 a, android.renderscript.Float3 b)
Float3 res = new Float3();
res.x = a.x - b.x;
res.y = a.y - b.y;
res.z = a.z - b.z;
return res;
|