• 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: Help with understanding matrices
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Help with understanding matrices


  • Subject: Re: Help with understanding matrices
  • From: Simon Topliss <email@hidden>
  • Date: Wed, 13 Feb 2008 10:46:15 +0000

Thanks for the replies so far. I apologise for not understanding the complexity of the initial question.

I've found this site that describes matrices wrt Flash and I guess the same theory applies to Illustrator.

http://www.senocular.com/flash/tutorials/transformmatrix/

So, back to my original, un-scaled and un-rotated image's values of:

{class:matrix, mvalue_a:1.0, mvalue_b:0.0, mvalue_c:0.0, mvalue_d:-1.0, mvalue_tx:-7844.0, mvalue_ty:9305.8896484375}

If I apply a 30 anti-clockwise rotation the new martix is:

{class:matrix, mvalue_a:0.866025388241, mvalue_b:-0.5, mvalue_c:-0.5, mvalue_d:-0.866025388241, mvalue_tx:-1.11954892578125E+4, mvalue_ty: 4044.0400390625}

And after another 30 degree rotation (60 degrees in total):

{class:matrix, mvalue_a:0.5, mvalue_b:-0.866025388241, mvalue_c:-0.866025388241, mvalue_d:-0.5, mvalue_tx:-1.14670400390625E +4, mvalue_ty:-2188.6005859375}

And then finally a 50% scale:

{class:matrix, mvalue_a:0.25, mvalue_b:-0.43301269412, mvalue_c:-0.43301269412, mvalue_d:-0.25, mvalue_tx:-5584.02001953125, mvalue_ty:-883.80078125}

I think I'm still fairly on-topic as Illustrator doesn't provide a in- built way of providing the rotation and scale of an object with AppleScript (or JavaScript).

I'm trying to write a AppleScript handler that will return rotation, scale, skew of an object given its matrix.

Can anyone help me get close to achieving this?

Simon

_______________________________________________
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: Help with understanding matrices
      • From: deivy petrescu <email@hidden>
    • Re: Help with understanding matrices
      • From: "Mark J. Reed" <email@hidden>
References: 
 >Help with understanding matrices (From: Simon Topliss <email@hidden>)
 >Re: Help with understanding matrices (From: Doug McNutt <email@hidden>)

  • Prev by Date: Re: pivot table
  • Next by Date: Re: terminology conflicts, etc. [was: Re: A date IS a date]
  • Previous by thread: Re: Help with understanding matrices
  • Next by thread: Re: Help with understanding matrices
  • Index(es):
    • Date
    • Thread