I'm reading a book on how to construct transformation matrices and I'm stuck in a certain point.
From the book:
Now here's the figure that I don't understand:
How come the opposite edge in the right triangle is |Q|sin(theta)?
When doing sine in that triangle I get opposite edge = |P'|sin(theta).
I don't understand the adjacent edge calculation as well, and equation (3.12) doesn't make sense to me as well.


The vector $Q$ is formed by rotating the vector $P$ through 90 degrees. Therefore $P$ and $Q$ have the same length.
The diagram is drawn very badly, in my opinion.