Hey,
Ok. So I guess thing would to be envision new york city and beijing highlighted on google earth...
I'm trying to figure out how to map points onto a 3d primitive object (a sphere), get their distance via any direction by the circumference, and their distance by diameter. The points are going to be latitude and longitude coordinates.
Right now, this is what i'm trying to use to map the coordinates (a code agnostic version):
x1 = radius * cos(long1) * cos(lat1);
y1 = radius * sin(long1) * cos(lat1);
z1 = radius * sin(lat1);
but i'm almost sure its wrong. How could I get each points position and calculate their distances straight across the sphere's diameter and also their distance going around the circumference of the sphere?
Thanks.