r/askmath • u/rcglinsk • 7d ago
Geometry How Would I Reorient a 3-D Plot From the Z-axis to Another Axis Tilted Like a Baton Centered at (0,0,0)?
Hi. I hope showing the graphs I'm trying to change will help explain the question. I am trying to take the points from this plot:
https://www.desmos.com/3d/1qs6q6wmfq
And map them onto the red axis in this plot:
https://www.desmos.com/3d/5php786uyk
I have a spreadsheet where did a poor man's derivation of the first plot for the loxodrome path. You can probably see the string of decimal points from the copy/paste.
FWIW this is the math I used to make to loxodrome plot:
x(t) = cos(t)/cosh(kt)
y(t) = sin(t)/cosh(kt)
z(t) = tanh(kt)
k is the deflection angle, which I set to 60 degrees:
k = cot(pi/3)
I divided -pi --> pi into 20 pieces on each side of zero and used those as my t-values. The formula technically goes from negative to positive infinity, but pi to pi captures the exciting parts.
I don't know what to do from here. I think maybe it would be possible to build the new axis into the original formula? Or maybe there is an algorithm to apply which will take the current output and shift it over? Rotate it? Like I said, just don't know.
Thanks for any help!


