Geometric Transformation Calculator
Results
Formulas Used in Geometric Transformation Calculator
In-Depth Tutorial: Geometric Transformation Calculator
The Geometric Transformation Calculator applies the four foundational transformations of plane geometry — translation, reflection, rotation, and dilation — to a point (x, y) and returns the image point. This tutorial walks through what each transformation does to the point, what it does to a whole shape, and which transformations preserve which properties (length, angle, orientation).
The four transformations at a glance
| Transformation | Effect on point | Preserves length? | Preserves orientation? |
|---|---|---|---|
| Translation | (x + h, y + k) | Yes | Yes |
| Reflection | (x, −y) or (−x, y) | Yes | No (mirror flips) |
| Rotation | (−y, x) for 90° CCW | Yes | Yes |
| Dilation | (kx, ky) | No (scales) | Yes (if k > 0) |
Transformations that preserve length and angle are called isometries (also called rigid transformations) — they move a shape without distorting it. Translation, reflection, and rotation are isometries. Dilation is not an isometry — it scales the shape larger or smaller. Dilation does preserve angles, so it produces a similar figure (same shape, different size).
Translation — sliding without changing
A translation slides every point of the figure by a fixed amount h horizontally and k vertically. The rule:
(x, y) → (x + h, y + k)
Examples:
- Translate (3, 5) by (h, k) = (2, −1): new point is (3 + 2, 5 + (−1)) = (5, 4).
- Translate (−2, 0) by (4, 7): new point is (2, 7).
Translation is the simplest transformation: every point moves the same way. Shapes keep their size, orientation, and proportions — they just appear in a new location on the coordinate plane. If you translate a triangle, the new triangle is congruent (identical) to the original.
Reflection — mirror flip
A reflection flips the figure across a line called the axis of reflection. The most common axes are the x-axis, y-axis, and the lines y = x and y = −x.
- Reflection over x-axis: (x, y) → (x, −y). The y-coordinate flips sign.
- Reflection over y-axis: (x, y) → (−x, y). The x-coordinate flips sign.
- Reflection over y = x: (x, y) → (y, x). Swap the coordinates.
- Reflection over y = −x: (x, y) → (−y, −x). Swap and negate both.
Reflection preserves distances and angles but reverses orientation — if the original figure has a clockwise order, the reflected figure has counterclockwise (or vice versa). In coordinate geometry this matters: a right-handed coordinate system reflected becomes left-handed.
Examples:
- Reflect (3, 5) over x-axis: (3, −5).
- Reflect (3, 5) over y-axis: (−3, 5).
- Reflect (3, 5) over y = x: (5, 3).
Rotation — turning around a point
A rotation turns the figure around a fixed point (the center of rotation) by a given angle. The most common rotations are about the origin (0, 0) by 90°, 180°, and 270°:
- Rotation 90° CCW (counterclockwise): (x, y) → (−y, x).
- Rotation 180°: (x, y) → (−x, −y).
- Rotation 270° CCW (= 90° CW): (x, y) → (y, −x).
For a general rotation by angle θ about the origin, the formula uses trigonometry: (x, y) → (x·cosθ − y·sinθ, x·sinθ + y·cosθ). The three "nice" cases above come from plugging θ = 90°, 180°, 270° (where cos and sin are 0 and ±1).
Rotation preserves distances, angles, and orientation — it is the only nontrivial isometry that does. Two figures related by rotation are directly congruent (same shape, same size, same handedness, just turned).
Examples:
- Rotate (3, 5) by 90° CCW: (−5, 3).
- Rotate (3, 5) by 180°: (−3, −5).
- Rotate (3, 5) by 270° CCW: (5, −3).
Dilation — scaling
A dilation scales the figure by a constant factor k about a center (usually the origin). The rule for dilation about the origin:
(x, y) → (kx, ky)
Where:
- k > 1: enlargement (figure gets bigger)
- 0 < k < 1: reduction (figure gets smaller)
- k < 0: combined dilation + 180° rotation
- k = 1: identity (no change)
- k = −1: same as a 180° rotation
Dilation preserves angles (similar figures have congruent angles) but does not preserve distances. If you dilate by k = 2, every length doubles, every area quadruples (k²), and if it were a 3D dilation, every volume would be 8 × (k³).
Examples:
- Dilate (3, 5) by k = 2: (6, 10).
- Dilate (3, 5) by k = 0.5: (1.5, 2.5).
- Dilate (3, 5) by k = −1: (−3, −5). Same as rotation 180°.
Composing transformations
You can apply transformations one after another. The order usually matters:
- Translate then rotate is different from rotate then translate (because rotation around the origin uses the origin as a fixed point — translating first moves your figure away from the origin first).
- Reflect then reflect over two parallel lines = a translation perpendicular to those lines by twice the distance between them.
- Reflect then reflect over two intersecting lines = a rotation about their intersection point by twice the angle between them.
- A glide reflection is a reflection followed by a translation parallel to the axis of reflection — it produces footprints in sand pattern.
Real-world applications
- Computer graphics — every 2D / 3D game and CAD tool uses transformation matrices to translate, rotate, and scale models on screen.
- Physics — reference-frame changes are coordinate transformations (Galilean for classical, Lorentz for relativistic).
- Pattern design — wallpaper patterns, tiling, and textile design rely on systematic combinations of these four transformations (the 17 wallpaper groups classify every possible repeating 2D pattern).
- Symmetry — a figure has a symmetry if some non-identity transformation maps it onto itself. A square has 8 symmetries (4 rotations + 4 reflections).
Common mistakes
- Mixing up CCW and CW for rotations. In math, rotation angles are measured counterclockwise by convention. A "rotation by 90°" means 90° CCW unless specified otherwise.
- Confusing reflection over y = x with reflection over the x-axis. The first swaps coordinates: (x,y) → (y,x). The second flips the y sign: (x,y) → (x,−y). These give very different images.
- Forgetting that dilation scales area as k², not k. Doubling all lengths quadruples the area. Many real-world estimation errors stem from this.
- Assuming all transformations preserve orientation. Reflection reverses orientation; the others preserve it.
Frequently Asked Questions – Geometric Transformation Calculator
Translation (shift), reflection over the x-axis or y-axis, rotation by 90° or 180° about the origin, and dilation (scaling from the origin).
Select translation and enter the shift amounts as Parameter 1 (horizontal, h) and Parameter 2 (vertical, k). The image point becomes (x + h, y + k).
Yes — rotation is a rigid transformation (isometry). It preserves all distances and angles; only the orientation changes.
Yes — free and unlimited.
Every transformation on this page has a matrix representation
The transformations the calculator computes as coordinate-by-coordinate formulas — (x, y) → (−y, x) for 90° rotation, (x, y) → (kx, ky) for dilation — have an equivalent algebraic form as transformation matrices. This is how computer graphics and robotics represent transformations internally, because matrices compose by multiplication, and multiplying matrices is faster than applying transformations sequentially point-by-point.
For linear transformations (rotation, reflection, dilation — anything that fixes the origin), a 2×2 matrix acts on column vectors:
- Rotation by θ CCW:
[[cos θ, −sin θ], [sin θ, cos θ]]. For θ = 90°:[[0, −1], [1, 0]], which applied to(x, y)gives(−y, x). Same answer as the direct formula. - Reflection over x-axis:
[[1, 0], [0, −1]], giving(x, −y). - Dilation by k about origin:
[[k, 0], [0, k]], giving(kx, ky).
Translation is the odd one out — it isn't a linear transformation in the strict sense (doesn't fix the origin), so no 2×2 matrix can represent it. The workaround is homogeneous coordinates: represent each 2D point as a 3D vector (x, y, 1) and use 3×3 matrices. Translation by (h, k) becomes:
[[1, 0, h], [0, 1, k], [0, 0, 1]]
Multiplying this matrix by (x, y, 1) gives (x + h, y + k, 1) — the translated point in homogeneous form. Rotations, reflections, dilations, and translations all fit as 3×3 matrices, so they can all be composed by matrix multiplication. This is why every GPU shader in existence stores transformations as 4×4 matrices (the 3D analog): translation, rotation, and scaling can all be premultiplied into a single "model matrix" that transforms every vertex of a 3D model with one matrix-vector operation per vertex.
All possible repeating 2D patterns fall into 17 wallpaper groups
Combine translations, rotations, reflections, and glide reflections systematically, and you can create wallpaper-like patterns that repeat forever in two independent directions. In 1891 the Russian crystallographer Evgraf Fedorov proved that there are exactly 17 distinct symmetry classes of such patterns — the wallpaper groups. Every possible repeating 2D pattern (real or abstract) belongs to exactly one of these 17 groups.
Each group has a shorthand name (like p6m for the hexagonal-symmetry pattern with reflections) that encodes its symmetry structure. The full list ranges from the trivial group p1 (only translational symmetry, no rotations or reflections) to the maximally symmetric p6m (six-fold rotational symmetry plus reflections through the rotation axes — the honeycomb pattern). Wallpaper designers and mathematically inclined artists have used the classification for over a century — the Islamic geometric patterns in Spain's Alhambra palace, decorated over 700 years ago, include examples of every one of the 17 groups, discovered long before the mathematical proof.
The classification extends downward and upward. In one dimension, there are exactly 7 frieze groups — repeating patterns like the ones on ancient Greek pottery borders. In three dimensions, there are 230 space groups classifying all crystal lattice symmetries, discovered by Fedorov and Arthur Schoenflies independently in 1891. The 230 crystal space groups underlie every X-ray diffraction analysis in modern chemistry — Rosalind Franklin's DNA X-ray images, the identification of protein structures, and every modern crystal-structure determination uses this classification as a foundation.
Composition and classification questions
Why does the order of composing transformations matter?
Because most transformations don't commute — applying A then B typically gives a different result from applying B then A. Concrete example: take the point (1, 0). Rotate 90° CCW first, then translate by (0, 1): (1, 0) → (0, 1) → (0, 2). Reverse the order: translate first, then rotate: (1, 0) → (1, 1) → (−1, 1). Different final positions. In matrix form, this is the non-commutativity of matrix multiplication: AB ≠ BA in general. Two special cases do commute: two rotations about the same center commute (their angles add), and two translations commute (their vectors add). All other pairs generally don't. This is why 3D animation pipelines encode a strict order for combining transformations (typically scale → rotate → translate, applied in that order to a vertex).
Are there only four types of 2D isometry?
Yes — this is Chasles's theorem (1830). Every isometry of the plane is one of exactly four types: identity (no change), translation (slide by a fixed vector), rotation (turn about a fixed point), or glide reflection (reflect over a line, then translate parallel to that line). Any composition of translations, rotations, and reflections — no matter how complicated — reduces to one of these four categories. Pure reflections without translation are the special case of glide reflections with zero translation. The result generalizes: 3D has six types of isometry (identity, translation, rotation, glide reflection, screw motion, and rotoreflection). Every rigid motion of a physical object in 3D space is one of these six.
What's the difference between a rotation and a reflection in terms of what they preserve?
Both preserve distances (they're isometries) and angles. The critical difference is orientation. Rotation preserves the "handedness" of a figure — a clockwise-labeled triangle stays clockwise after rotation. Reflection reverses handedness — a clockwise-labeled triangle becomes counterclockwise after reflection. This is why a mirror image of your hand can't be superimposed on the original hand without flipping (a right hand in a mirror looks like a left hand). Formally, rotations have +1 determinant in matrix form; reflections have −1. This ±1 distinction is the algebraic signature of orientation preservation vs reversal, and it's what mathematicians call the "chirality" or "handedness" of an object.
How do these transformations work in 3D?
Every 2D transformation extends to 3D with an added dimension. Rotation in 3D happens around an axis (a line) rather than a point — the standard rotation matrices in 3D are 3×3 with entries built from sines and cosines. Translation adds a third component. Reflection can happen across a plane rather than a line, so there are more choices (reflection over xy-plane, yz-plane, xz-plane, or any tilted plane). The 3D transformation matrices are 3×3 (or 4×4 for homogeneous coordinates including translation), and matrix multiplication composes them the same way. Every 3D animation, from a walking character in a game to a satellite in orbit-simulation software, is a sequence of these 3D transformations applied to vertex data. The mathematical structure is directly the 3D generalization of what this calculator computes for 2D.