To check the intersection of a rectangle and parallelogram, you can divide the parallelogram into 3 parts: two triangles and the rectangle between them. Then do a intersection check on all three.
Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Aug 3, 10:17 pm, Sagar <[email protected]> wrote: > Hi all, > > I check rectangle intersection when an object intersects with that > rectangle. Now I create a parellelogram using Path class. How can I > check intersection now?? The problem right now is: > > ------------------ > | _ | > | _ | > | _ | > | _ | > | | > ------------------ > > Here parellogram shows my image that will block object. While > rectangle works like container. But it should shrink itself to > accomodate image only, not the other area. I m not getting this..plz > help.. > > For vertical and horizontal blockers i have something like this > > ----- > | _ | > | _ | > | _ | > ----- > > So for those blockers, there is no problem.plz suggest a > solution..thanks a lot!! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

