Register to reply

Code for great circle?

by makc
Tags: circle, code
Share this thread:
Dec23-07, 12:39 PM
P: 61
wonder if anyone have stumbled across ready code for this - i.e., the code to get from phi1 theta1 to phi2 theta2 on sphere.
Phys.Org News Partner Science news on
Physical constant is constant even in strong gravitational fields
Montreal VR headset team turns to crowdfunding for Totem
Researchers study vital 'on/off switches' that control when bacteria turn deadly
Dec24-07, 12:10 AM
P: 587
"Code"? In what language?

All you should really need to do is just copy equation (5) from that page, it should work almost verbatim as code in almost any programming language, just remember that [tex]cos^{-1}[/tex] becomes for example "acos" in C.
Dec24-07, 05:46 AM
P: 61
for starters, eq. 5 gives nothing but distance. what I need is deltas of phi and theta (ideally as a function of t = 0....1). the language could be anything that remotely looks like c (i.e. not lisp). the reason to ask for code is to avoid making bugs that were already made and fixed.

so far, closest to what I am looking for is, but I'm open for other options :)

Register to reply

Related Discussions
Simple circle circle collision detection General Math 6
Convert latex code to fortran code? Math & Science Software 1
Need great books on great topics Set Theory, Logic, Probability, Statistics 2
The Great Circle et al... Differential Geometry 4
C++ Code Help Programming & Computer Science 3