MEG 403 · Computer-Aided Design & Manufacturing
Our notes
2 min readWhy 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.
| Transformation | Matrix 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).
- Translate so the fixed point goes to the origin: (3 − 2, 4 − 2) = (1, 2).
- Scale: (2, 4).
- 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
-
Transformation matrix
(opens en.wikipedia.org in a new tab)
Wikipedia, Transformation matrix, CC BY-SA 4.0 · licence
-
Homogeneous coordinates
(opens en.wikipedia.org in a new tab)
Wikipedia, Homogeneous coordinates, CC BY-SA 4.0 · licence
-
NPTEL: Computer Aided Design and Manufacturing (IIT Delhi, whole course)
51 lectures: CAD hardware and raster graphics, 2D and 3D transformations, curves (Bezier, B-spline), surfaces and solid modelling, finite element basics, CAM. Video lectures, many hours in all: watch on Wi-Fi where you can.
(opens nptel.ac.in in a new tab)
NPTEL, NPTEL: Computer Aided Design and Manufacturing (IIT Delhi, whole course), CC BY-NC-SA 4.0 · licence
Watch
-
Best pick [Linear Algebra] Geometric Transformations
14 min · ≈ 63 MB · about ₦35
(opens youtube.com in a new tab)
-
2D Transformation I - Geometric Transformation, Manipulation & Data Storage - CAD/CAM/CAE
10 min · ≈ 45 MB · about ₦25
(opens youtube.com in a new tab)
-
2d Translation example | Transformation | CG | Computer Graphics | Lec-19 | Bhanu Priya
11 min · ≈ 50 MB · about ₦28
(opens youtube.com in a new tab)
-
Introduction to geometric transformations | Sets & Staging | Computer animation | Khan Academy
3 min · ≈ 14 MB · about ₦8
(opens youtube.com in a new tab)
-
COMPUTER AIDED DESIGN & ANALYSIS: 2D TRANSFORMATION
54 min · ≈ 243 MB · about ₦136
(opens youtube.com in a new tab)
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.