The Point.shiftTowards()
method returns a new Point
that is shifted
distance
(mm) in the direction of the target
.
Signature
Javascript
Point point.shiftTowards(Point target, float distance)
Example
Notes
If you need to move a point a percentage instead of a specific distance, use
Point.shiftFractionTowards()
instead.