Reputation: 176
I have set of points which resembles a curve. I created an additional line from its start to end (dashed line). Please see an example output below;
Question: What I would like to do is to realign this curve so that its starting point and the ending point will be on the x axis, where y=0. This means that dashed line will no longer be necessary as the x-axis will play that role.
Upvotes: 0
Views: 136
Reputation: 164
Just Subtract the starting point from all points and apply rotation. the rotation angle is equal to the dashed-line angle.
Upvotes: 1