I receive lat,long coordinates from the GPS of my vehicle and the coordinates of another object near the vehicle. What I want to do is to draw(using Graphics) points using those coordinates but as xys. My vehicle would always be the center so(0,0). The measurements should be converted to meters. My problem is with the object; how could I calculate its xy relative to the vehicle(in meters). I have a picturebox(556,536).
526 by 526 meters? Damn that's a big monitor. I wish I had one 1% as large.
The TinyGPS library can compute the heading from one waypoint to another. One waypoint is the location of the car. The other is the location of the other object. It can calculate the distance, too.
The heading and distance then can be used, in a polar coordinate system, to define a new point (with the car at 0,0).
Bakr:
By "picturebox(556,536)" I mean the control in visual c#...
So, the dimensions are in pixels. Well, the lines you draw will be, too. So, mixing pixels and meters in your requirements definition does not make coding easier.