[futurebasic] Re: Line thru Rects?

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : June 1998 : Group Archive : Group : All Groups

From: tedd <tedd@...>
Date: Sun, 21 Jun 1998 09:19:26 -0400
>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/