It can be seen from the figure that the position of the point on the sphere is determined by the shape of the spherical coordinates . Let be the rradius of the sphere; let it be alphaset relative to the x axis; and let betabe the angle relative to the xy plane. The Cartesian coordinates of a point on a sphere are:
x = r * cos(beta) * cos(alpha)
y = r * cos(beta) * sin(alpha)
z = r * sin(beta)
Edit
But for a common coordinate system with axes (L, M, N)centered on the (X, Y, Z)coordinates (as in dmuir answer):
(x, y, z) =
(X, Y, Z)
+ r * cos(beta) * cos(alpha) * L
+ r * cos(beta) * sin(alpha) * M
+ r * sin(beta) * N
Axes Land Nmust be orthogonal and M = cross(N, L). alphais set relatively L, and betais set relative to the plane L- M. If you do not know how it Lis connected with the points of the triangle, then the question cannot be answered.
source
share