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

Help with understanding matrices


  • Subject: Help with understanding matrices
  • From: Simon Topliss <email@hidden>
  • Date: Tue, 12 Feb 2008 18:41:30 +0000

Hello everyone. Is there a maths genius in the room?

I never studied matrices at school and I'm having a great deal of difficulty understanding how to do matrix calculations.

I tried to read the wikipedia entry but it was way over my head!

http://en.wikipedia.org/wiki/Matrix_(mathematics)

What I'm trying to work out is the rotation and/or scale of an image placed in Adobe Illustrator CS3.

Getting to matrix of an image when first placed into returns the result:

{class:matrix, mvalue_a:1.0, mvalue_b:0.0, mvalue_c:0.0, mvalue_d:-1.0, mvalue_tx:-7598.0, mvalue_ty:9058.275390625}

If I rotate the image by 45 degrees clockwise, the matrix is now:

{class:matrix, mvalue_a:0.707106769085, mvalue_b:-0.707106769085, mvalue_c:-0.707106769085, mvalue_d:-0.707106769085, mvalue_tx:-1.14441533203125E+4, mvalue_ty:821.1611328125}

And, if I then scale it by 50%, the matrix is now:

{class:matrix, mvalue_a:0.353553384542, mvalue_b:-0.353553384542, mvalue_c:-0.353553384542, mvalue_d:-0.353553384542, mvalue_tx:-5511.07666015625, mvalue_ty:559.08056640625}

So, how would I work out what the rotation and scale of the image is given the values in the second and third results?

What do the "mvalue" numbers define? Is there even a way to get the rotation and scale from these numbers?

TIA for anyone willing to help me with 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>
    • Re: Help with understanding matrices
      • From: Doug McNutt <email@hidden>
  • Prev by Date: Re: Delete Bug or Feature?
  • Next by Date: Re: Delete Bug or Feature?
  • Previous by thread: Re: AppleScript and PHP
  • Next by thread: Re: Help with understanding matrices
  • Index(es):
    • Date
    • Thread