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
ddistance away frompin the direction ofdirideally, pointpshould be in linel