Through 2 given points runs a line (K1 and K3). I want to compute (find) 2 others points (X1,X2), which are parallel to given points. Also I have center point(K2) between first and last point on this line.
I have K1,K2 and K3
How to find X1 and X2? I’m coding in C# in WPF, and I don’t know how to solve this problem… please, help me
Roberto
The vector tangential to your original line has the components
A normal vector to this line would be
The length of the vector
nis equal to the distance fromK1toK2. Since you actually want a quarter of this distance, your final result isNote that you could choose the opposite sign for
n, in which case you’d end up with a parallel line translated by the same distance in the opposite direction.