Get a point that is d distance away from p in the direction of dir ideally, point p should be in line l
d
p
dir
l
Get a point that is
d
distance away fromp
in the direction ofdir
ideally, pointp
should be in linel