/** Scales this vector in place, uniformly by the specified magnitude. * @return a reference to this vector, for chaining. */ public Vector scaleLocal (float v) { return scale(v, this); }
/** Scales this vector in place, uniformly by the specified magnitude. * @return a reference to this vector, for chaining. */ public Vector scaleLocal (float v) { return scale(v, this); }
/** Scales this vector's x and y components, in place, independently by the x and y components * of the supplied vector. * @return a reference to this vector, for chaining. */ public Vector scaleLocal (IVector other) { return scale(other, this); }
/** Scales this vector's x and y components, in place, independently by the x and y components * of the supplied vector. * @return a reference to this vector, for chaining. */ public Vector scaleLocal (IVector other) { return scale(other, 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; }