Re: Intersecting Polygons
From: YYZ (notapplicable)
Date: 09/14/04
- Next message: Ken Halter: "Re: Intersecting Polygons"
- Previous message: Rafael Chemtob: "Re: Partitions - COnfiguration Issues"
- In reply to: Douglas Marquardt: "Re: Intersecting Polygons"
- Next in thread: Ken Halter: "Re: Intersecting Polygons"
- Reply: Ken Halter: "Re: Intersecting Polygons"
- Reply: Douglas Marquardt: "Re: Intersecting Polygons"
- Reply: J French: "Re: Intersecting Polygons"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 14 Sep 2004 10:01:25 -0700
Thanks Douglas -- that gets me through about 99% of my situations. I actually
mistyped, though. I should have asked about the intersection of 2 POLYGONS, not
just rectangles. The polygons can have 3 or more points/sides, up to infinite.
In reality they probably won't have more than 20 points or so, but...
Any idea about that one? BTW, thanks for pointing me to that Platform SDK help
section -- I haven't seen it before, and it's better than the APIViewer for some
things.
Thanks.
Matt
"Douglas Marquardt" <no_spam@dummy.com> wrote in message
news:ukALymnmEHA.1120@TK2MSFTNGP14.phx.gbl...
> Hi Matt:
>
> From the VB6 Doc
> Public Declare Function IntersectRect Lib "user32" Alias "IntersectRect"
> (lpDestRect As RECT, lpSrc1Rect As RECT, lpSrc2Rect As RECT) As Long
>
> The IntersectRect function calculates the intersection of two source
rectangles and
> places the coordinates of the intersection rectangle into the destination
rectangle.
> If the source rectangles do not intersect, an empty rectangle (in which all
coordinates are set to zero) is placed into the
> destination rectangle.
>
> Doug.
>
> "YYZ" <notapplicable> wrote in message
news:%23zsdejnmEHA.3428@TK2MSFTNGP11.phx.gbl...
> > Off topic a bit, I guess...
> >
> > Does anyone know a mathematical formula for figuring out of 2 rectangles
> > intersect?
> >
> > Matt
> >
> >
>
>
- Next message: Ken Halter: "Re: Intersecting Polygons"
- Previous message: Rafael Chemtob: "Re: Partitions - COnfiguration Issues"
- In reply to: Douglas Marquardt: "Re: Intersecting Polygons"
- Next in thread: Ken Halter: "Re: Intersecting Polygons"
- Reply: Ken Halter: "Re: Intersecting Polygons"
- Reply: Douglas Marquardt: "Re: Intersecting Polygons"
- Reply: J French: "Re: Intersecting Polygons"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|