Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the 3 × 3 matrix for a rotation of 180 degrees?

Tags:

quicktime

I wont to rotate QuickTime Move 180 degrees.

Now my file's matrix(tkhd) is

1 0 0

0 1 0

0 0 1

I got this matrix form Dumpster.

What is the 3 × 3 matrix for a rotation of 180 degrees?

like image 905
SUKIYAKI Avatar asked Aug 11 '10 04:08

SUKIYAKI


People also ask

What is the rotation matrix for 180 degrees?

To rotate the ΔXYZ 180° counterclockwise about the origin, multiply the vertex matrix by the rotation matrix, [−100−1] . Therefore, the coordinates of the vertices of ΔX'Y'Z' are X'(−1,−2), Y'(−3,−5), and Z'(3,−4) .


1 Answers

Assuming you want a 3x3 homogeneous matrix for a 2D rotation about the Z-axis, then the matrix you want is:

-1  0  0
 0 -1  0
 0  0  1

If you want to rotate about a different axis, then the matrix will be different.

like image 57
Adam Rosenfield Avatar answered Oct 11 '22 11:10

Adam Rosenfield