I’m currently looking for a strategy to move two points, p1 and p2, by their respective directional vectors, v1 and v2, to a fixed offset distance d from line l.
The points p1 and p2 are the endpoints of the line l. The vectors v1 and v2 are unit vectors, and thus can’t be used directly to find the points p1’ and p2’ at the offset distance d from line l.
I know that I could construct an infinte line from p1 and p2 in the direction of v1 and v2, and intersect those lines with the offset infinte line at distance d from line l.
However, is there a simpler way? Could I for instance simply calculate the right vector lengths for v1 and v2 somehow? Any other suggestions?