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