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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • 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.