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