Can you break down X and Z into X, Y, Z trigonometric components?

Here’s another post that deals with a similar issue. Math.atan2 on the Y performing weirdly - #7 by Scottifly