Jump to content
The simFlight Network Forums

Working with coordinates (VB6)


Recommended Posts

Hello,

I am trying to make something like an ATC viewing which will be connected to the pilots's FS via FSUIPC. Therfore, I want to display the traffic on the program's form and I need for somehow to draw the traffic to a X and Y coordinates from the normal ones in FS...

Anyway,

I need to get distance and angel from 2 coordinate, distance I have already managed to return, I have problem only with the angel.

Just to be sure... Im talking about those coordinates: N028.41.07.001 E034.03.45.000

Thanks in advance!

Omer.

Link to comment
Share on other sites

I need to get distance and angel from 2 coordinate, distance I have already managed to return, I have problem only with the angel.

If the distance is not too far, i.e. the points are close enough to regard the intervening Earth's surface to be pretty flat rather than spherical, then isn't that merely a matter of simply right-angled triangle trig?

How did you determine the distance -- wasn't that by similar assumptions, then using pythoagoras?

Otherwise it gets more complex for both, as you need great circle calculations for the distance and some spherical trig for the angle.

Regards,

Pete

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. Guidelines Privacy Policy We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.