>Hi, > >Does anybody have a good fn to determine if a line x,y to dx,dy intersects >or touchs a rectangle? > >-Derek >---------------- >www2.hawaii.edu/~dereksmi >---------------- Derek: Don't need one. Use the QuickDraw toolbox commands to see if there is a common area between the rectangle and your line. You do this by: 1) Opening a region; 2) Drawing you line: 3) Closing the region; 4) Using Boolean = FN RECTINRGN (rect&, rgn&). See page 299 of the FB Handbook. tedd ___________________________________________________________________ <mailto:tedd@...> http://sperling.com/