I have many river profile lines (the red lines) that intersect with the river (the blue lines), but are not perpendicular to the river. Is there any way to quickly change the angle of the line segment to make the profile perpendicular to the river?
The orgin is like this.

I would like to automatically get the result of the image below.
