Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

How we can access the rotation angle from matrix?

How we can access the rotation angle from matrix?

Problem

Can please anybody explain me how will i get the x,y and Rotation Angle for the following image from its matrix attribute ?

I am so much weak in maths, so please help me out ?

Problem courtesy of: King Kong

Solution

According to Coordinate Systems, Transformations and Units – SVG 1.1 (Second Edition) and if my pocket calculator is right, it is about 41 degrees, counter clockwise.

The first value 0.75329963 is the cos(theta), where theta is the sought angle. So you have only to calculate the inverse cosine for that value and have your result.

Solution courtesy of: Arne

Discussion

View additional discussion.



This post first appeared on CSS3 Recipes - The Solution To All Your Style Problems, please read the originial post: here

Share the post

How we can access the rotation angle from matrix?

×

Subscribe to Css3 Recipes - The Solution To All Your Style Problems

Get updates delivered right to your inbox!

Thank you for your subscription

×