I have a curve
ax.plot(xvals, yvals, zvals)
Where
xvals=[x1, x2, x3 ...], yvals=[y1, y2, y3 ...], zvals=[z1, z2, z3 ...]
And I have a straight line given by two points
[x_begin,y_begin,z_begin], [x_end,y_end,z_end]
How to rotate curve 90/180/270 degrees relative to straight (clockwise or not — it doesn't matter)