home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DP Tool Club 15
/
CD_ASCQ_15_070894.iso
/
maj
/
4352
/
position.nlr
< prev
next >
Wrap
Text File
|
1994-01-24
|
428b
|
15 lines
Title "Find Position of Object Using Direction from Observers";
Variable Xo; // X position of observer
Variable Yo; // Y position of observer
Variable Dir; // Direction to object (compass degrees)
Parameter Xp; // X position of object
Parameter Yp; // Y position of object
Function abs(tan(90-Dir)*Xp - Yp + Yo - tan(90-dir)*Xo) /
sqrt(tan(90-dir)^2 + 1);
Data;
1 7 108
2 5 064
1 2 037
3 1 011
5 3 341