Problem (2025 Paper 3 Question 4(a)(i))
Transform a cylinder (radius 1, height 2, centred at origin, aligned along y-axis) to have:
- Radius 2
- Ends at (1,2,3) and (2,4,5)
Solution
Order: Scale → Rotate → Translate
Compute Target Properties
- Axis vector: v=(2−1,4−2,5−3)=(1,2,2)
- Length: ∣v∣=12+22+22=3
- Midpoint: m=(21+2,22+4,23+5)=(1.5,3,4)
1. Scale
Original: radius 1, height 2. Target: radius 2, height 3.
- sx=2, sz=2 (double radius)
- sy=1.5 (height 3 from 2: 3/2=1.5)
S=200001.50000200001
2. Rotate
Align y-axis (0,1,0) with target axis (1,2,2).
Step A: Zero z-component. Rotate about x-axis by θ=45°.
Step B: Zero x-component. Rotate about z-axis by ϕ=arcsin(1/3)≈19.47°.
The rotation aligning the axis:
R−1=Rx(−45°)⋅Rz(−arcsin(1/3))
3. Translate
Move origin to midpoint (1.5,3,4):
T=1000010000101.5341
Overall Model Matrix
M=T⋅Rx(−45°)⋅Rz(−arcsin(1/3))⋅S

Summary
- Compute geometric properties first (axis, length, midpoint)
- Apply SRT order: Scale, Rotate, Translate
- Rotate by inverse of the rotation that aligns axis to canonical
Past Paper Questions
2025 Paper 3 Question 4(a)(i): Transform a cylinder to have specified radius and endpoints. [6 marks]