/** Adds a vector in-place to this one. * @return a reference to this vector, for chaining. */ public Vector addLocal (IVector other) { return add(other, this); }
/** Adds a vector in-place to this one. * @return a reference to this vector, for chaining. */ public Vector addLocal (float x, float y) { return add(x, y, this); }
/** Adds a vector in-place to this one. * @return a reference to this vector, for chaining. */ public Vector addLocal (IVector other) { return add(other, this); }
/** Adds a vector in-place to this one. * @return a reference to this vector, for chaining. */ public Vector addLocal (float x, float y) { return add(x, y, this); }
@Override // from IRay2 public Vector getNearestPoint (IVector point, Vector result) { if (result == null) { result = new Vector(); } float r = point.subtract(origin).dot(direction); result.set(origin.add(direction.scale(r))); return result; }
@Override // from IRay2 public Vector getNearestPoint (IVector point, Vector result) { if (result == null) { result = new Vector(); } float r = point.subtract(origin).dot(direction); result.set(origin.add(direction.scale(r))); return result; }