I want to rotate the starting curve

Hello everyone! I’m trying to rotate the starting curve in Grasshopper in the xy axis but I’m stuck. When I try to rotate the curve in Rhino the grasshopper script disappears and also I can’t find the proper way to rotate the starting curve in grasshopper.
Can you help me fix this issue?

wave_profiles.3dm (4.6 MB) wave_profiles.gh (15.5 KB)

Is this what you are after?
wave_profiles2.gh (17.1 KB)

I wanted to change the line direction from XY to XZ

wave_profiles (1).gh (18.7 KB) wave_profiles.3dm (4.2 MB)

Now I’m trying to make the sections of the profiles to be aligned with the yellow line in the screenshot

wave_profiles (1).gh (18.7 KB) wave_profiles.3dm (4.2 MB)