The rotation calculator is a straightforward tool for implementing the rotation coordinate rules. In this short article, you will learn:
- What the geometric rotation of coordinates is;
- How to calculate the rotation of a point around the origin in the Euclidean plane;
- The generalization of the point rotation calculations for an arbitrary pivot; and
- How to calculate geometric rotations using matrices.
Keep reading to learn everything about the calculation of coordinate rotation!
What is a rotation in coordinate geometry?
The rotation in coordinate geometry is a simple operation that allows you to transform the coordinates of a point. Usually, the rotation of a point is around the origin, but we can generalize the equations to any pivot.
We can identify two directions of the rotation:
- Clockwise rotation; or
- Counterclockwise rotation.
Rotations are isometric transformation: the relative distance between points is conserved, that is to say, when rotating a shape, the resulting and the original shapes are congruent. You can verify this with our coordinate distance calculator.
How to calculate the rotation of a point
Calculating the rotation of a point is an exercise of trigonometry. Once you define the coordinate of the point , you need to define the angle of the rotation. You can usually choose one of two units:
- Degrees; or
To learn how to convert between degrees and radians, use our angle conversion tool!
The last thing you have to define is the direction of the rotation around the pivot. The convention is:
- Assign negative angles for clockwise rotations; and
- Use positive angles for counterclockwise rotations.
To calculate the rotation of the coordinates, we start with the x coordinate:
where the resulting coordinate is . To compute the vertical coordinate, we use a similar formula:
where is the final coordinate: the point rotated around the origin lies now at .
Rotations are more natural using another type of coordinate: learn more about this in the polar coordinates calculator.
Calculate the rotation by an angle around an arbitrary point
We have modified the formula above to calculate the geometric rules for the rotation of coordinates around an arbitrary point. Defining the coordinates of the point of reference for our rotation with the coordinates , we rewrite the equations as:
As we didn't modify the arguments of the trigonometric function nor multiply the coordinates, the modifications we introduced correspond uniquely to a set of translations.
Calculating a rotation in geometry with the matrix formalism
If you have already had contact with linear algebra and matrix formalism, you may find it helpful to know that we can calculate rotations in geometry via simple matrix operations.
We define a rotation as an operator, , identified by the following matrix:
The coordinates of the initial point will now become the vector . To calculate the rotated coordinates, we apply the operator to the vector, and we calculate the result with the matrix product (you can refresh your knowledge at the matrix product calculator):
If you want to calculate the rotation of a point around an arbitrary pivot, we change this equation to:
where is the vector containing the pivot point's coordinates. In this set of equations, we performed the rotation in the origin of the plane () by applying the rotation operator to the vector , and subsequently moved the result to the desired point by summing the vector corresponding to the position of the generic pivot ().
How to use our angle rotation calculator
Our angle rotation calculator allows you to compute clockwise and counterclockwise rotations for up to ten points simultaneously.
To use our angle rotation calculator, follow these steps:
Insert the desired rotation angle. You can choose between multiple units. Remember that in our calculator, counterclockwise rotations correspond to positive angles and vice-versa.
If you need to change the coordinates of the pivot — the default is the origin — click on
advanced modeto see the relative variables.
Start inserting the coordinates of your points. Once you fill in both the x and y coordinates, a new pair of variables will appear.
How do you rotate the point (3,4) 60 degrees counterclockwise?
To rotate the point (3,4) 60° counterclockwise around the origin, follow these steps:
Compute the sine of 60°:
sin(60°) = √3/2 = 0.866
Compute the cosine of 60°:
cos(60°) = 1/2 = 0.5
Find the new x coordinate:
xf = xicos(60°) − yisin(60°) = 3 × 0.5 − 4 × 0.866 = -1.964
Find the new y coordinate:
yf = xisin(60°) − yicos(60°) = 3 × 0.866 + 4 × 0.5 = 4.598
How do I calculate the geometric rotation of a point around the origin?
To calculate the geometric rotation of a point around the origin at an angle Θ, we use the following formulas:
- For the new x coordinate xf = xicos(Θ) − yisin(Θ).
- For the new y coordinate yf = xisin(Θ) + yicos(Θ).
In this convention, positive angles are associated with the rotation of the coordinate in the counterclockwise direction.
What are the formulas for the rotation around an arbitrary point?
To calculate the rotation of a point around an arbitrary pivot, we take the coordinate rotation rules and slightly modify them. If the pivot has coordinates (xo,yo), then, a point (xi,yi) rotated by an angle α moves to the coordinates:
- xf = xo + (xi − xo)cos(Θ) − (yi − yo)sin(Θ).
- yf = yo + (xi − xo)sin(Θ) + (yi − yo)cos(Θ).
Note that by substituting xo = 0 and yo = 0, we find the rules for the rotation of a point around the origin.
What is the rotation matrix?
A rotation matrix R is a linear operator that transforms a point in a two-dimensional space according to the rotation rules. To use the rotation matrix, we write the initial point as a vector (xi,yi); then, we apply the matrix to it using the matrix product. The final equation is simple:
xf = R · xi
where R is equal to:
and Θ is the angle of the rotation.