I have:
Graphics3D[{
Arrow[{{0, 0, 0}, {2, 0, 0}}],
Arrow[{{0, 0, 0}, {0, 2, 0}}],
Arrow[{{0, 0, 0}, {0, 0, 2}}],
Blue, Thick,
Line[{{0, 0, 0}, {Sqrt[2], Sqrt[2], 0}}],
Line[{{Sqrt[2], Sqrt[2], 0}, {Sqrt[2], Sqrt[2], 1}}],
Red, PointSize[Large], Point[{Sqrt[2], Sqrt[2], 1}],
Arrow[Table[0.5 {Cos[t], Sin[t], 0}, {t, 0, Pi/4, Pi/24}]],
Text[Style["x", Black, 14], {2.1, 0, 0}],
Text[Style["y", Black, 14], {0, 2.1, 0}],
Text[Style["z", Black, 14], {0, 0, 2.1}],
Text[Style["\[Pi]/4", Black, 14], {0.6, 0.2, 0}],
Text[Style["2", Black, 14], {0.7, 0.9, 0}],
Text[Style["1", Black, 14], {1.6, 1.4, 0.5}],
Text[Style["(2, \[Pi]/4, 1)", Black, 14], {1.4, 1.4, 1.2}]
}]
Which produces this image:
Suppose that I wish to use cylindrical coordinates, for example, Line[{{0,0,0},{2,Pi/4,0}}]
instead of Line[{{0,0,0},{Sqrt[2],Sqrt[2],0}}]
. How would I go about that?
And, suppose I wanted to use cylindrical coordinates everywhere in my code. How would I go about that?