• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

P3D v5 Mathematical imbecile desperately needs some help, please

Messages
3,371
Country
germany
I get a position via simconnect: longitude, latitude, altitude and heading.

I need to calculate up to four positions (again longitude & latitude) from this position, maximal distance to the reference point is about 200m.

These position belong to three figures. The first one is the most easy one:

The same heading as my reference point, but in a distance of 20m, 40m, 60m and 80m. In the end these will be variable, so it might then cbe 30, 60, 90 and 120 m.

The second figure is like a diamond. The first point 20m from reference, the second and third point 40m from the reference, but one also 20m to the left while the other is 20m to the right, and the last one 60m from the reference point

The last figure is a box. So point 1 and 2 are 20m from reference, but also 20 m to the left and to the right.

I assume that might not sound self-explaining, therefore I add pictures for illustration.

Can somebody help me with the formula to calculate the points for the three figures? I am doing this in vb.net

Many thanks
Martin
 

Attachments

  • sc_box.jpg
    sc_box.jpg
    7.4 KB · Views: 218
  • sc_diamond.jpg
    sc_diamond.jpg
    8.1 KB · Views: 207
  • sc_line.jpg
    sc_line.jpg
    4.9 KB · Views: 212
Many thanks, Dave. That looks very helpful after the initial shock of seeing all my enemies from school time - sin, cos, tan - all in one pile :-)

Do you have an idea, what unit is expected as distance d (miles, km, m)

A point {lat,lon} is a distance d out on the tc radial from point 1 if:


From mobile hence short
 
Martin, it has been several years since I've seen that site, or used any of those formulas. I just remembered it as a good resource.

Looking at it now, it is almost like seeing it for the first time.

Back then, I had to read the introduction and some of the worked examples closely several times before figuring out what I had to do.

In one specific case, I used nautical miles for the distance to calculate intermediate points on a great circle, which worked fine, but I can't say if that will work in your situation.

Sorry I can't be of more help.
 
Martin, I can provide you either C++ sources for performing such calculations or alternatively a DLL exporting such functions if you can link it to your vb.net program. Send me a PM if it can facilitate your work

Hervé
 
Hello Hervé.

Many thanks, that is very much appreciated!. I have not yet succeeded to come close to a solution. I am writing you a message.
 
Back
Top