UNIHIVE

Study Hub UNIPORT MEG 403

MEG 403 · Computer-Aided Design & Manufacturing

Geometric transformations

Translation, scaling, rotation and reflection in 2D and 3D, homogeneous coordinates and combining transformations.

Our notes

2 min read

Why transformations

CAD systems move, copy, rotate, scale and mirror geometry, and change views. Each is a matrix operation on point coordinates.

Basic 2D transformations

  • Translation by (tx, ty): x′ = x + tx, y′ = y + ty.
  • Scaling by (sx, sy) about the origin: x′ = sx x, y′ = sy y.
  • Rotation by θ (anticlockwise) about the origin: x′ = x cos θ − y sin θ; y′ = x sin θ + y cos θ.
  • Reflection about the x-axis: (x, −y); about the y-axis: (−x, y); about y = x: (y, x).

Homogeneous coordinates

Write a 2D point as (x, y, 1) so that translation becomes a matrix multiplication too, and all transformations can be combined into one 3 × 3 matrix.

TransformationMatrix rows
Translation[1 0 tx], [0 1 ty], [0 0 1]
Scaling[sx 0 0], [0 sy 0], [0 0 1]
Rotation[cos θ −sin θ 0], [sin θ cos θ 0], [0 0 1]

In 3D, points become (x, y, z, 1) and matrices 4 × 4; rotations are about the x, y or z axis.

Worked example 1: rotation

Rotate the point (4, 2) by 30° about the origin.

  • x′ = 4 × 0.8660 − 2 × 0.5 = 3.464 − 1 = 2.464.
  • y′ = 4 × 0.5 + 2 × 0.8660 = 2 + 1.732 = 3.732.

Rotation by 90° gives (−2, 4).

Worked example 2: scaling about a fixed point

Scale the point (3, 4) by a factor 2 about the fixed point (2, 2).

  1. Translate so the fixed point goes to the origin: (3 − 2, 4 − 2) = (1, 2).
  2. Scale: (2, 4).
  3. Translate back: (4, 6).

Result (4, 6). As one matrix: T(2, 2) · S(2, 2) · T(−2, −2).

Concatenation and order

Combined transformations multiply matrices, and order matters: rotating then translating is not the same as translating then rotating. For column vectors, the transformation applied first is written on the right.

Worked example 3: order matters

Point (1, 0). Rotate 90° then translate by (2, 0): (0, 1) → (2, 1). Translate then rotate: (3, 0) → (0, 3).

Viewing transformations

3D models are projected onto the 2D screen:

  • Orthographic (parallel) projection: front, top, side views for engineering drawings; isometric views.
  • Perspective projection: realistic views with vanishing points.

Exams usually ask

  • Write the homogeneous matrices for 2D transformations.
  • Transform points or shapes, including about a fixed point.
  • Show that matrix multiplication order matters.

Common mistake

Rotating about the origin when the question asks for rotation about another point. Translate to the origin first, rotate, then translate back.

Written by the UniHive team in our own words. Spotted a mistake? Tell us on WhatsApp.

Read

Watch

We link to free material and never copy it. Every link was opened by our team before it went up; video data is a rough guide at 360p.

All MEG 403 topics

Report

Sign in to report this. It is free.

Is this your work (a lecturer, author or publisher)? Ask us to take it down.