Rotate around Center of Mass

Bob Sneidar bobs at twft.com
Mon Jan 9 12:11:24 EST 2012


Can you group it, then set the loc of the image to the center of the group plus or minus the horizontal and vertical distance to the point of distribution? The group should automatically change size to accommodate the relocated image and the group would then also be centered on the point of distribution. Just a thought, I might be wrong. 

Bob


On Jan 7, 2012, at 10:15 AM, AcidJazz wrote:

> Is there a way to rotate an image around it's center of mass?     I teach
> statistics, and one of the definitions of the mean is that it is the balance
> point of a distribution.   I'd like to actually show a distribution
> "balancing" back and forth, or actually spinning around its mean.   But, if
> I take an image of a very skewed distribution of scores (long tail) and
> tried to rotate it, it would rotate around the center of the /image/, which
> would not necessarily be the mean of the distribution.   I image that the
> solution involves extending the size of the image so that it is now centered
> on the mean, but without altering or moving the actual distribution.   In
> BlueMango's Clarify, after you take a snapshot, you can extend the size of
> the image without stretching the picture.  I would need a way to do that
> programmatically so that the horizontal center is the mean of the
> distribution.    Any suggestions??
> 
> Mark   
> 
> --
> View this message in context: http://runtime-revolution.278305.n4.nabble.com/Rotate-around-Center-of-Mass-tp4273701p4273701.html
> Sent from the Revolution - User mailing list archive at Nabble.com.
> 
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode





More information about the use-livecode mailing list