Rotation Matrix
2D and 3D rotation matrices from angles
About this calculator
The Rotation Matrix Calculator builds the 2D rotation matrix R(θ) = [[cosθ, −sinθ], [sinθ, cosθ]] from a single angle, or the 3D matrix R = Rz·Ry·Rx (yaw–pitch–roll, ZYX order) from three angles. It works in degrees or radians, gives exact entries at special angles, confirms that det(R) = 1, and draws the rotated basis vectors so you can see what the matrix does. Useful for linear algebra, computer graphics, robotics, and physics.