home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Monster Media 1994 #1
/
monster.zip
/
monster
/
MATH
/
NONLIN31.ZIP
/
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