- Messages
- 3,371
- Country

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
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

