Added Vector.subtractLocal(x, y).

This commit is contained in:
Michael Bayne
2012-05-01 09:54:31 -07:00
parent 8524f5c911
commit 0daba7bc49
+6
View File
@@ -79,6 +79,12 @@ public class Vector extends AbstractVector
return add(x, y, this);
}
/** Subtracts a vector in-place from this one.
* @return a reference to this vector, for chaining. */
public Vector subtractLocal (float x, float y) {
return subtract(x, y, this);
}
/** Adds a scaled vector in-place to this one.
* @return a reference to this vector, for chaining. */
public Vector addScaledLocal (IVector other, float v) {