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