Calculating Coordinates on a Sphere Using Trigonometry

  • Context: Undergrad 
  • Thread starter Thread starter frogtag
  • Start date Start date
  • Tags Tags
    Sphere Trigonometry
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
2 replies · 2K views
frogtag
Messages
17
Reaction score
0
Can someone just check my maths to see if this is correct.

Hopefully, this should give the coordinates for a point on a sphere?

x = radius x cos(vert angle) x sin(hoz angle)
y = radius x cos(hoz angle)
z = radius x sin(vert angle) x sin(hoz angle)
 
Physics news on Phys.org
In polar coordinates, [itex]x= \rho cos(\theta) sin(\theta)[/itex], [itex]y= \rho sin(\theta) sin(\phi)[/itex], [itex]z= \rho cos(\phi)[/itex]. There [itex]\theta[/itex] is what I think you are calling the "horizontal angle"- the angle between the positive x-axis and the line from (0,0,0) to the point (x,y,0)- also sometimes called the "longitude". [itex]\phi[/itex] is the "co-latitude", the angle between the z-axis and the line from (0,0,0) to (x,y,z). [itex]\rho[/itex] is the straight line distance between (0,0,0) and (x,y,z).

For a sphere of radius R, this is [itex]x= R cos(\theta) sin(\theta)[/itex], [itex]y= R sin(\theta) sin(\phi)[/itex], [itex]z= R cos(\phi)[/itex].