Pick up a copy of "Foundation ActionScript Animation: Making Things Move!"
by Keith Peters. Best $26.39 (at Amazon.com) you'll ever spend. The answer
to your question (and a bunch more you never knew you had) is in that book. 

Jack

------------------------------
Date: Wed, 4 Oct 2006 16:55:45 -0500
From: "Jason C Reynolds" <[EMAIL PROTECTED]>
Subject: [Flashcoders] Find point after rotation

Hi, having some math problems... hoping someone can help....

Lets say I have a rectangle (height > width). I need to know the bottom
middle point. That would be point(clipWidth / 2, clipHeight).
But I am having a hard time keeping track of this point after I rotate that
clip. If I rotate the clip 40 degrees (clip._rotation = -40), where on the
stage is that bottom middle point now?

I have searched the forums, and came up with alot of finding the angles, but
all seem to assume I know 2 points.
Closest I've gotten is using:
x=ClipWidth / 2 + Math.cos(angle)
y=ClipWidth / 2 - Math.sin(angle)

Sorry, I'm soooo rusty with math and hoping someone can push me in the right
direction. Right now I'm trying to figure out the radius of the 'circle'
that is formed while rotating, but that isn't going anywhere (fast anway).

Thanks for any tips,
Jason




_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to