How to get 3D coordinates (XYZ) of the sun given Azimuth and altitude/elevation?

1k Views Asked by At

I want to create an Augmented Reality(AR) application to show the sun's position where I need the 3D(XYZ) coordinates to plot in Augmented Reality(AR).

Main question: I need to calculate the 3D coordinates(XYZ) from the sun Azimuth and altitude/elevation

Look at the image.

enter image description here