• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Maths Calculation Problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Maths Calculation Problem


  • Subject: Re: Maths Calculation Problem
  • From: Emmanuel Levy <email@hidden>
  • Date: Fri, 14 Nov 2008 18:19:24 +0100

At 5:10 PM +0000 11/14/08, Simon Topliss wrote:
Hi All,

I'm trying to work out whether two text frames (or any two objects) intersect each other in Illustrator but I'm struggling with the maths.

I'm sure there's a basic formula that games developers and/or mathmagicians use to achieve this but I'm terrible at maths. I think in pictures!

In fact it's easier to consider the reverse question: when do two rectangles R1 and R2 *not* intersect.


They don't intersect if any of these conditions is fulfilled:

- the left edge of R1 is to the right of the right edge of R2,
- the right edge of R1 is to the left of the left edge of R2,
- the top edge of R1 is lower than the bottom edge of R2,
- the bottom edge of R1 is upper than the top edge of R2.

If none of those are true, then R1 and R2 do intersect.

Best,
Emmanuel
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden
  • Follow-Ups:
    • Re: Maths Calculation Problem
      • From: Skeeve <email@hidden>
References: 
 >Maths Calculation Problem (From: Simon Topliss <email@hidden>)

  • Prev by Date: Maths Calculation Problem
  • Next by Date: Re: Maths Calculation Problem
  • Previous by thread: Maths Calculation Problem
  • Next by thread: Re: Maths Calculation Problem
  • Index(es):
    • Date
    • Thread