Re: Maths Calculation Problem
Re: Maths Calculation Problem
- Subject: Re: Maths Calculation Problem
- From: Simon Topliss <email@hidden>
- Date: Fri, 14 Nov 2008 20:29:45 +0000
Illustrator's co-ordinates are based on postscript co-ordinates.
Bottom-left is always the origin.
On 14 Nov 2008, at 19:56, Emmanuel Levy wrote:
At 12:02 PM -0700 11/14/08, Doug McNutt wrote:
At 19:30 +0100 11/14/08, Skeeve wrote:
set Object1 to {bounds:{523, 520, 750, 464}, width:227, height:56}
set Object2 to {bounds:{501, 569, 738, 514}, width:237, height:55}
return intersect(Object1, Object2)
to intersect(o1, o2)
set {L1, T1, R1, B1} to bounds of o1
set {L2, T2, R2, B2} to bounds of o2
return not ((L1 > R2) or (L2 > R1) or (B1 > T2) or (B2 > T1))
end intersect
Did I just learn something? Screen coordinates are usually
positive down to conform with printing conventions. Those T and B
values would need to have T < B to have something that would print.
Is it Applescript or a system change since QuickDraw? Where is the
(0,0) point on the screen?
QuickDraw is as you say, and Quartz is the other way. I don't know
for Illustrator.
Emmanuel
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (applescript-
email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden
_______________________________________________
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