home *** CD-ROM | disk | FTP | other *** search
/ DP Tool Club 15 / CD_ASCQ_15_070894.iso / maj / 4352 / position.nlr < prev    next >
Text File  |  1994-01-24  |  428b  |  15 lines

  1. Title "Find Position of Object Using Direction from Observers";
  2. Variable Xo;            // X position of observer
  3. Variable Yo;            // Y position of observer
  4. Variable Dir;            // Direction to object (compass degrees)
  5. Parameter Xp;            // X position of object
  6. Parameter Yp;            // Y position of object
  7. Function abs(tan(90-Dir)*Xp - Yp + Yo - tan(90-dir)*Xo) /
  8.         sqrt(tan(90-dir)^2 + 1);
  9. Data;
  10. 1 7 108
  11. 2 5 064
  12. 1 2 037
  13. 3 1 011
  14. 5 3 341
  15.