Stereographic Projection #130
offsky
started this conversation in
Show and tell
Replies: 2 comments 8 replies
-
Cool! Thanks for sharing! |
Beta Was this translation helpful? Give feedback.
7 replies
-
Awesome skills @offsky |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
One thing I wanted to do with my software project was to draw a sky chart showing the positions of the planets. From my research, the typical way to do this is to translate the celestial sphere onto a plane using a Stereographic Projection. I figured out the math, so I thought I would share it here in case it's useful to someone else. This bit of Javascript code turns altitude/azimuth into x/y cartesian coordinates that you can then easily draw. The radius variable allows you to scale the x/y coordinates to fit within whatever circle you want.
Beta Was this translation helpful? Give feedback.
All reactions