title: Plot n GPS coordinates on the screen with respect to each other and not *NOT* to any map
body: <p>Suppose I am on location M(latitude, longitude), and I have 3 More GPS coordinates A(lat, lon) ,B (lat, lon), and C(lat, lon) which are in range of 500 meters radius around M.</p>
  
  <p><strong>NOTE:</strong> I want to plot them on screen with respect to each other but <strong><em>NOT</em></strong> to any other map or anything else, and number of gps point around M may increase or decrease but will always be in radius 500 meters around M.</p>
  
  <p>M will be at the center of screen. ScreeWidth=320, ScreenHeight=400</p>
  
  <p>I have following information</p>
  
  <pre><code>M =  31.484083, 74.392708,
  
  A =  31.483552, 74.392386 and distance from M is 66.42 Meters approximately
  B =  31.483534, 74.392532 and distance from M is 63.23 Meters approximately
  C =  31.483421, 74.392434 and distance from M is 78.00 Meters approximately
  </code></pre>
  
  <p>M will be drawn at WIDTH/2 and HEIGHT/2 of the screen</p>
  
  <p>for A, B and C a CONVERSION FUNCTION is required that will return x and y in pixels with RESPECT to M and </p>
  
  <p>screen width and height, keeping in mind these points will always be within 500 meter radius around M.</p>
  
  <p>So that I can plot these points as shown in picture below.</p>
  
  <p>Here is image : </p>
  
  <p><img src="https://i.stack.imgur.com/ezMp3.gif" alt="image">
  <a href="https://picasaweb.google.com/lh/photo/J7PE6RuSqu7Pv9xv9D2PgQ?feat=directlink" rel="nofollow noreferrer">https://picasaweb.google.com/lh/photo/J7PE6RuSqu7Pv9xv9D2PgQ?feat=directlink</a></p>
  
  <p>I only need a conversion function for x and y, I know how to draw them on screen</p>