Rotate any point (x, y) around a center (cx, cy) by a given angle. Visualize geometry, rotation matrix, and transformed coordinates.
A 2D rotation is a linear transformation that moves a point (or vector) around a fixed center by a given angle θ. It preserves distances and orientation (if θ>0 counter‑clockwise). Rotations are fundamental in Euclidean geometry, computer graphics, robotics (kinematics), and navigation systems.
Rotation about origin: (x', y') = (x·cosθ − y·sinθ , x·sinθ + y·cosθ)
For arbitrary center C(cx, cy): Let u = P − C, then P' = C + R(θ)·u
Using trigonometric identities, a point expressed in polar coordinates (r·cosφ, r·sinφ) rotated by θ becomes (r·cos(φ+θ), r·sin(φ+θ)). Expanding via sum formulas leads directly to the matrix form:
The matrix is orthogonal (RT = R−1) with determinant +1, representing a pure rotation without scaling or reflection. This property makes it invaluable for coordinate frame transformations in aerospace, 3D graphics (Euler angles), and mechanical linkages.
u = (Px - Cx, Py - Cy).rad = θ · π / 180.u'_x = u_x·cosθ - u_y·sinθ; u'_y = u_x·sinθ + u_y·cosθ.P' = (Cx + u'_x, Cy + u'_y).Our calculator uses double-precision floating point, ensuring high accuracy for engineering and academic tasks.
| Property | Description |
|---|---|
| Angle sign | Positive = counter‑clockwise (right‑hand rule). Negative = clockwise. |
| Center matters | Rotation about a non‑origin center changes translation effect. |
| Composition | Two rotations sum angles: R(θ2)·R(θ1) = R(θ1+θ2). |
| Degeneracy | 0° or multiples of 360° produce identity transformation. |
A 2‑DOF planar robotic arm has its end‑effector at point P relative to a shoulder joint C. To rotate the arm by 30° while maintaining endpoint reach, engineers apply the rotation formula. Using our tool with P(8,2) and C(0,0) at θ=30°, the new coordinates become (6.928, 5.0). This matches standard Denavit‑Hartenberg transformations and allows rapid prototyping without heavy CAD software.