3d trigonometry equation?

You have some errors in you equations. (They are valid in the 2d case but not in 3d).

Related Questions