How to Rotate a Line Around a Point?

Rotating a line around a point is a fundamental concept in geometry and is widely used in various fields, including computer graphics, engineering, and physics. Let’s break down the process into manageable steps and understand the underlying principles.

Basic Concepts

Rotation and Pivot Point

Rotation involves turning an object around a fixed point, called the pivot or center of rotation. In this case, the object is a line, and the pivot point is a specific point around which the line will rotate.

Angle of Rotation

The angle of rotation is the measure of how far the line is turned around the pivot point. This angle can be measured in degrees or radians.

Mathematical Representation

To rotate a line, we need to understand how to mathematically represent the rotation. The most common methods involve using rotation matrices or trigonometric functions.

Rotation Matrix

A rotation matrix is a matrix used to perform a rotation in Euclidean space. For a 2D rotation, the rotation matrix is:

$R(theta) = begin{bmatrix} cos(theta) & -sin(theta) \ sin(theta) & cos(theta) end{bmatrix}$

Where $theta$ is the angle of rotation.

Trigonometric Functions

Alternatively, you can use trigonometric functions to calculate the new coordinates of the points after rotation. For a point $(x, y)$ rotated by an angle $theta$ around the origin, the new coordinates $(x’, y’)$ are given by:

$x’ = x cos(theta) – y sin(theta)$

$y’ = x sin(theta) + y cos(theta)$

Steps to Rotate a Line

Let’s break down the steps to rotate a line around a point.

  1. Identify the Line and Pivot Point

    Consider a line defined by two endpoints, $A(x_1, y_1)$ and $B(x_2, y_2)$. Let the pivot point be $P(x_p, y_p)$

  1. Translate the Line to the Origin

    To simplify the rotation, first translate the line so that the pivot point $P$ becomes the origin. This is done by subtracting the coordinates of $P$ from the coordinates of $A$ and $B$

    $A’ = (x_1 – x_p, y_1 – y_p)$

    $B’ = (x_2 – x_p, y_2 – y_p)$

  1. Apply the Rotation

    Now, apply the rotation matrix or trigonometric functions to the translated points $A’$ and $B’$

    For $A’$:

    $x_{A’}’ = (x_1 – x_p) cos(theta) – (y_1 – y_p) sin(theta)$

    $y_{A’}’ = (x_1 – x_p) sin(theta) + (y_1 – y_p) cos(theta)$

    For $B’$:

    $x_{B’}’ = (x_2 – x_p) cos(theta) – (y_2 – y_p) sin(theta)$

    $y_{B’}’ = (x_2 – x_p) sin(theta) + (y_2 – y_p) cos(theta)$

  1. Translate Back to the Original Position

    Finally, translate the rotated points back to the original position by adding the coordinates of $P$

    $A” = (x_{A’}’ + x_p, y_{A’}’ + y_p)$

    $B” = (x_{B’}’ + x_p, y_{B’}’ + y_p)$

Example

Let’s go through an example to make this process clearer.

Given:

  • Line endpoints: $A(1, 2)$ and $B(4, 5)$
  • Pivot point: $P(2, 3)$
  • Angle of rotation: $90^circ$ (or $frac{pi}{2}$ radians)

  1. Translate the Line to the Origin

    $A’ = (1 – 2, 2 – 3) = (-1, -1)$

    $B’ = (4 – 2, 5 – 3) = (2, 2)$

  1. Apply the Rotation

    For $A’$:

    $x_{A’}’ = -1 cos(frac{pi}{2}) – (-1) sin(frac{pi}{2}) = 0 + 1 = 1$

    $y_{A’}’ = -1 sin(frac{pi}{2}) + (-1) cos(frac{pi}{2}) = -1 + 0 = -1$

    For $B’$:

    $x_{B’}’ = 2 cos(frac{pi}{2}) – 2 sin(frac{pi}{2}) = 0 – 2 = -2$

    $y_{B’}’ = 2 sin(frac{pi}{2}) + 2 cos(frac{pi}{2}) = 2 + 0 = 2$

  1. Translate Back to the Original Position

    $A” = (1 + 2, -1 + 3) = (3, 2)$

    $B” = (-2 + 2, 2 + 3) = (0, 5)$

    So, the new coordinates of the line endpoints after a $90^circ$ rotation around the point $P(2, 3)$ are $A”(3, 2)$ and $B”(0, 5)$

Conclusion

Rotating a line around a point may seem complex at first, but by breaking it down into steps and using mathematical tools like rotation matrices and trigonometric functions, it becomes manageable. Whether you’re working on a geometric problem or designing a computer graphic, understanding this process is incredibly useful.

Citations

  1. 1. Khan Academy – Rotations
  2. 2. Math is Fun – Rotation
  3. 3. Wolfram MathWorld – Rotation

Related

(2) O3 + H → O2 + OH k2 = 1.78×10^-11 cm^3 s^-1 (3) O + OH → O2 + H k3 = 4.40×10^-11 cm^3 s^-1 (5) O + HO2 → O2 + OH k5 = 3.50×10^-11 cm^3 s^-1 (6) H + HO2 → O2 + H2 k6 = 5.40×10^-12 cm^3 s^-1 (9) OH + HO2 → O2 + H2O2 k9 = 4.00×10^-11 cm^3 s^-1 (10) HO2 + HO2 → O2 + H2O2 k10 = 2.50×10^-12 cm s^-1 (11) O + O2 + M → O3 + M k11 = 1.05×10^-34 cm^6 s^-1 (14) H + O2 + M → HO2 + M k14 = 8.08×10^-32 cm^6 s^-1 (15) H + H + M → H2O + M k15 = 3.31×10^-27 cm^6 s^-1 (16) O2 + hv → 2 O k16 = (1.26×10^-8 s^-1) φ (17) H2O + hv → H + OH k17 = (3.4×10^-6 s^-1) φ (18) O3 + hv → O2 + O k18 = (7.10×10^-5 s^-1) φ

Table 1 Reactions, rate constants and activation energies used in the model* No. Reaction kopt (M⁻¹ s⁻¹) 1 OH + H₂ → H + H₂O 3.74 x 10⁷ 2 OH + HO₂ → HO₂ + OH⁻ 5 x 10⁹ 3 OH + H₂O₂ → HO₂ + H₂O 3.8 x 10⁷ 4 OH + O₂ → O₂ + OH 9.96 x 10⁹ 5 OH + HO₂ → O₂ + H₂O 7.1 x 10⁹ 6 OH + OH → H₂O₂ 5.3 x 10⁹ 7 OH + e⁻aq → OH⁻ 3 x 10¹⁰ 8 H + O₂ → HO₂ 2.0 x 10¹⁰ 9 H + HO₂ → H₂O₂ 2.0 x 10¹⁰ 10 H + H₂O₂ → OH + H₂O 3.44 x 10⁷ 11 H + OH → H₂O 1.4 x 10¹⁰ 12 H + H → H₂ 1.94 x 10¹⁰ 13 e⁻aq + O₂ → O₂⁻ 1.9 x 10¹⁰ 14 e⁻aq + O₂ → HO₂⁻ + OH⁻ 1.3 x 10¹⁰ 15 e⁻aq + HO₂ 2.0 x 10¹⁰ 16 e⁻aq + H₂O₂ 1.1 x 10¹⁰ 17 e⁻aq + HO₂ → OH + OH⁻ 1.3 x 10¹⁰ 18 e⁻aq + H⁺ → H 2.3 x 10¹⁰ 19 e⁻aq + e⁻aq → H₂ + OH⁻ + OH⁻ 2.5 x 10⁹ 20 HO₂ + O₂ → O₂ + HO₂ 1.3 x 10⁹ 21 HO₂ + HO₂ → O₂ + H₂O₂ 8.3 x 10⁵ 22 HO₂ + HO₂ → O₂ + OH + H₂O 3.7 23 HO₂ + HO₂ → O₂ + O₂ + OH + H₂O 7 x 10⁵ s⁻¹ 24 H⁺ + O₂⁻ → HO₂ 4.5 x 10¹⁰ 25 H⁺ + O₂⁻ → O₂ 2.0 x 10¹⁰ 26 H⁺ + OH⁻ 1.4 x 10¹¹ 27 H⁺ + HO₂⁻ 2 x 10¹⁰ 28 H₂O₂ → HO₂ + H⁺ + OH⁻ 2.5 x 10⁻⁵ s⁻¹ 29 H₂O₂ → H⁺ + OH⁻ 1.4 x 10⁻⁷ s⁻¹ 30 O₂ + O₂ → O₂ + HO₂ + OH⁻ 0.3 31 O₂ + H₂O₂ → O₂ + OH + OH 16 32

(2) O3 + H → O2 + OH k2 = 1.78×10^-11 cm^3 s^-1 (3) O + OH → O2 + H k3 = 4.40×10^-11 cm^3 s^-1 (5) O + HO2 → O2 + OH k5 = 3.50×10^-11 cm^3 s^-1 (6) H2O + O → 2 OH k6 = 5.40×10^-12 cm^3 s^-1 (9) OH + HO2 → O2 + H2O k9 = 4.00×10^-11 cm^3 s^-1 (10) HO2 + HO2 → O2 + H2O2 k10 = 2.50×10^-12 cm s^-1 (11) O + O2 + M → O3 + M k11 = 1.05×10^-34 cm^6 s^-1 (14) H + O2 + M → HO2 + M k14 = 8.08×10^-32 cm^6 s^-1 (15) OH + H + M → H2O + M k15 = 3.31×10^-27 cm^6 s^-1 (16) O2 + hv → 2 O k16 = (1.26×10^-8 s^-1) φ (17) H2O + hv → H + OH k17 = (3.4×10^-6 s^-1) φ (18) O3 + hv → O2 + O k18 = (7.10×10^-8 s^-1) φ