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