Affine space — theory with the drone filming a match, lines, planes, distances, rotations and conics (and the two drones that nearly brushed)

Filming a match with a friend’s drone I found out that two lines in space can fail to meet without being parallel. The TV camera was crossing the pitch 25 metres up and our drone was flying down diagonally towards the center. On the controller screen the two paths “crossed”, but the drones never met: one went over the other. That same afternoon, working it out, I got that they had passed less than three metres apart. That idea, which does not exist in the plane, is one of the keys to this topic.

This is the geometry topic: points, lines and planes in the plane and in space, how their equations are written, how they sit relative to each other and how big the distances and angles between them are. It is what comes up in the geometry exercise of the exam. At the end, more briefly, we will see how figures are moved with matrices (translations, rotations, reflections) and what conics are (circle, ellipse, hyperbola and parabola). In the 25/26 academic year this topic was not taught for lack of time, but it is in the course guide and has appeared in exams from other years. The example for the whole article is a football match: the pitch is a plane, the drone filming it flies in a straight line and the TV camera passes overhead.

In a nutshell: affine space is the space of points, where each pair of points defines a vector (their displacement) and a point plus a vector gives another point. In it, a line is described by a point and a direction vector, and a plane by a point and its normal vector; with those pieces you study relative positions, distances and angles.

Before you start. For this topic all you need is to add and subtract vectors by coordinates, work out the modulus of a vector, the dot product and the cross product (topic 4), and find the rank of a few vectors or a 3×3 3 \times 3 determinant (topics 1 and 2). That’s all. The topic has three big ideas, in this order: points, which are places, and vectors, which are displacements between them; how to write a line (a point and a direction) and a plane (a point and its normal); and how to compare those pieces with each other: what position they are in, how far apart they are and at what angle. At the end, more briefly, movements with matrices and conics. If you get lost at any point, go back to the drone: the whole topic can be told with it.

Points and vectors

In topics 3 and 4 you worked with vectors: displacements, with a direction, a sense and a size, that can be added and multiplied by a number. Now we add points: places. The difference matters: “the drone is at (10, 20, 30)” is a point; “the drone moves 2 metres in x, 1 in y and drops 1” is a vector.

To give points coordinates you need a frame of reference: an origin OO and a basis of vectors. We will use the standard one: the origin at a corner of the pitch, the xx axis along the touchline (100 m), the yy axis along the goal line (60 m) and the zz axis upwards. The pitch is the plane z=0z = 0.

Before the rules, try a test with the drone. The coordinates of a point depend on where you put the origin; those of a vector don’t. To see it, put the origin at the center spot, (50,30,0) (50, 30, 0) , with the same axes, and redo the sums. Subtracting the center spot from each point gives its new coordinates:

WhatOrigin at the cornerOrigin at the center spotWhy
Take-off D D (10,20,30) (10, 20, 30) (−40,−10,30) (-40, -10, 30) It is a place: its numbers say how far to walk from the origin, and the origin has changed
Landing L L (70,50,0) (70, 50, 0) (20,20,0) (20, 20, 0) The same: another origin, other numbers
L−D L – D (60,30,−30) (60, 30, -30) (60,30,−30) (60, 30, -30) When you subtract, the shift of the origin cancels out in the two coordinates: only the drone’s movement is left
D+L D + L (80,70,30) (80, 70, 30) (−20,10,30) (-20, 10, 30) , which from the corner is (30,40,30) (30, 40, 30) You get a different spot depending on the origin: it is not a place on the pitch
D+L2 \tfrac{D + L}{2} (40,35,15) (40, 35, 15) (−10,5,15) (-10, 5, 15) , which from the corner is (40,35,15) (40, 35, 15) The same spot with both origins: the midpoint is a place

That table is the whole section. Subtracting two points makes sense (you get the displacement, the same wherever you look at it from), adding a vector to a point too (you walk that displacement from there), and adding two points doesn’t, except in the midpoint combination. Now, the rules with their names.

The drone, the camera and the pitchThe football pitch as the plane z = 0, with a corner at the origin. The drone leaves the point D = (10, 20, 30) and flies down in a straight line with direction (2, 1, −1) until it lands at L = (70, 50, 0). The TV camera flies 25 metres up along the line s, diagonally.D = (10, 20, 30)L = (70, 50, 0)camera (0, 0, 25)sru = (2, 1, −1)xyzpitch: z = 0r: drone paths: TV camerapitch: plane z = 01 unit = 1 metre
Points, lines and planes: the whole topic fits in this drawing.

There are three rules linking points and vectors:

  • Two points give a vector: AB→=B−A\overrightarrow{AB} = B – A, subtracting coordinates.
  • A point plus a vector gives a point: A+AB→=BA + \overrightarrow{AB} = B.
  • The midpoint of AA and BB is M=A+B2M = \tfrac{A + B}{2}.

What makes no sense is adding two points “just like that”: (the corner flag) + (the center spot) is not a place. The midpoint is an exception that works because it is A+12AB→A + \tfrac12\overrightarrow{AB}.

Points and vectorsThe points A = (1, 1) and B = (5, 3), the vector AB = (4, 2) from one to the other, and the midpoint M = (3, 2).123456123xyA = (1, 1)B = (5, 3)M = (3, 2)AB = (4, 2)vector from A to BAB = B − AmidpointM = (A + B)/2point + vector = pointA + AB = Bdistance: |AB| = √20
A point is a place; a vector is a displacement. Subtracting two points gives the vector joining them.

The distance between two points is the modulus of the vector joining them: d(A,B)=∣AB→∣d(A, B) = |\overrightarrow{AB}|. The drone takes off from D=(10,20,30)D = (10, 20, 30) and lands at L=(70,50,0)L = (70, 50, 0): DL→=(60,30,−30)\overrightarrow{DL} = (60, 30, -30) and d(D,L)=3600+900+900=5400=306≈73.48d(D, L) = \sqrt{3600 + 900 + 900} = \sqrt{5400} = 30\sqrt6 \approx 73.48 metres.

Subtracting the wrong way round. AB→=B−A\overrightarrow{AB} = B – A, end minus start. A−BA – B is the opposite vector, pointing backwards. In distances it does not show (the modulus is the same), but in a line or a reflection it does.

The line

A line is fixed by a point and a direction. The drone’s line goes through D=(10,20,30)D = (10, 20, 30) in the direction of DL→=(60,30,−30)\overrightarrow{DL} = (60, 30, -30), which we simplify by dividing by 30: u⃗=(2,1,−1)\vec u = (2, 1, -1). Any non-zero multiple works as a direction vector.

A line and a planeOn the left, a line: a point P and a direction vector u. On the right, a plane: a point Q, two non-parallel vectors v and w, and the normal vector n, perpendicular to both.Puline: P + λuQvwn = v × wplane: Q + λv + μw
A line is a point and a direction; a plane, a point and two directions (or a point and its normal).

Before the formulas: the line as a clock

Before seeing the four forms, think how you would say where the drone goes. It leaves D D and each time it moves the same amount: 2 metres in x x , 1 in y y and it drops 1. Imagine it moves u⃗=(2,1,−1) \vec u = (2, 1, -1) every second and set a clock, λ \lambda , that counts the seconds since take-off:

λ \lambda CalculationPointWhy
0(10,20,30)+0⋅(2,1,−1) (10, 20, 30) + 0 \cdot (2, 1, -1) (10,20,30) (10, 20, 30) It has not moved yet: take-off
1(10,20,30)+(2,1,−1) (10, 20, 30) + (2, 1, -1) (12,21,29) (12, 21, 29) One step of u⃗ \vec u
10(10,20,30)+(20,10,−10) (10, 20, 30) + (20, 10, -10) (30,30,20) (30, 30, 20) Ten steps: 10u⃗ 10\vec u
30(10,20,30)+(60,30,−30) (10, 20, 30) + (60, 30, -30) (70,50,0) (70, 50, 0) Height 0: the landing
−5 -5 (10,20,30)−(10,5,−5) (10, 20, 30) – (10, 5, -5) (0,15,35) (0, 15, 35) The clock running backwards: where it would have been before take-off

The last row is the hardest one: the line does not stop at D D or at L L . The flight is a piece, but the line carries on both ways, with negative λ \lambda and with λ \lambda greater than 30.

Writing the line is saying that sentence with symbols: “the point where the drone is equals take-off plus λ \lambda times the step”. Said in one go, with the three numbers together, it is the vector form; one coordinate per line, the parametric equations; solving for the clock in each line and equating, the symmetric form; and getting rid of the clock altogether, the implicit equations. All four say the same thing, and you have them in the table below.

Check you’ve got it: does the drone go through the point (50, 40, 10)?

Yes, with λ=20 \lambda = 20 . Step by step: the x x coordinate says 10+2λ=50 10 + 2\lambda = 50 , so λ=20 \lambda = 20 . With that same clock, y=20+20=40 y = 20 + 20 = 40 and z=30−20=10 z = 30 – 20 = 10 : both match. What you have to check is that the same λ \lambda works for all three coordinates; if each one asked for a different λ \lambda , the point would not be on the line.

The same line can be written in several ways:

FormDrone line
Vector(x,y,z)=(10,20,30)+λ(2,1,−1)(x, y, z) = (10, 20, 30) + \lambda(2, 1, -1)
Parametricx=10+2λ, y=20+λ, z=30−λx = 10 + 2\lambda, \ y = 20 + \lambda, \ z = 30 – \lambda
Symmetric (continuous)x−102=y−201=z−30−1\dfrac{x – 10}{2} = \dfrac{y – 20}{1} = \dfrac{z – 30}{-1}
Implicit (two planes)x−2y+30=0,y+z−50=0x – 2y + 30 = 0, \quad y + z – 50 = 0

Each value of λ\lambda is a point on the line: λ=0\lambda = 0 is take-off, λ=30\lambda = 30 gives (70,50,0)(70, 50, 0), the landing, and λ=10\lambda = 10 gives (30,30,20)(30, 30, 20), a point along the way. The implicit equations come from the symmetric form by equating the fractions two at a time: x−102=y−20\tfrac{x – 10}{2} = y – 20 gives x−2y+30=0x – 2y + 30 = 0, and y−20=z−30−1y – 20 = \tfrac{z – 30}{-1} gives y+z−50=0y + z – 50 = 0. Check with LL: 70−100+30=070 – 100 + 30 = 0 and 50+0−50=050 + 0 – 50 = 0.

Why are two equations needed? Because in space one linear equation is a plane (we will see it now) and a line is the intersection of two planes.

The line in the plane

In the plane (two coordinates) things are simpler: a line is one single equation, ax+by+c=0ax + by + c = 0, and its vector (a,b)(a, b) is perpendicular to the line. A pass on the grass from player A=(30,10)A = (30, 10) to player B=(50,40)B = (50, 40) goes in the direction (20,30)(20, 30), that is, (2,3)(2, 3); the line is 3x−2y−70=03x – 2y – 70 = 0 (it satisfies 90−20−70=090 – 20 – 70 = 0 and 150−80−70=0150 – 80 – 70 = 0). Its slope is 32\tfrac32.

For the curious. The same equation 3x−2y−70=03x – 2y – 70 = 0 in space is no longer a line: since it says nothing about zz, it is the vertical plane containing the line of the pass. That is why you always need to know whether you are in E2E_2 or in E3E_3.

The plane

Before the equation, think what it takes to fix the pitch. A point and a direction are not enough: infinitely many planes turn around a line, like a door around its hinges. With two directions that are not parallel it can no longer turn: the plane stays still.

There is a shorter way. Stick a post in the grass, perfectly upright: every path you walk on the pitch, in whatever direction, is perpendicular to the post. That direction perpendicular to the whole plane is the normal vector, and a single one is enough to fix the tilt. With the normal and a point A A of the plane, the rule is: a point P P is on the plane if the path from A A to P P is perpendicular to the normal, that is, if n⃗⋅AP→=0 \vec n \cdot \overrightarrow{AP} = 0 . Expanding that dot product is what gives the general equation.

A plane is fixed by a point and two directions that are not parallel, or by a point and a perpendicular vector, its normal vector n⃗\vec n. The second way is the most useful: if n⃗=(a,b,c)\vec n = (a, b, c), the plane is

ax+by+cz+d=0(general equation) ax + by + cz + d = 0 \qquad \text{(general equation)}

and the coefficients of xx, yy, zz are the normal vector. The pitch is z=0z = 0: normal (0,0,1)(0, 0, 1), pointing up.

How do you get the normal from two directions v⃗\vec v and w⃗\vec w of the plane? With the cross product from topic 4: n⃗=v⃗×w⃗\vec n = \vec v \times \vec w, which is perpendicular to both. For example, the grandstand roof goes through A=(0,60,20)A = (0, 60, 20), B=(100,60,20)B = (100, 60, 20) and C=(0,70,25)C = (0, 70, 25):

AB→=(100,0,0),AC→=(0,10,5),AB→×AC→=(0,−500,1000) \overrightarrow{AB} = (100, 0, 0), \quad \overrightarrow{AC} = (0, 10, 5), \quad \overrightarrow{AB} \times \overrightarrow{AC} = (0, -500, 1000)

Simplifying, n⃗=(0,−1,2)\vec n = (0, -1, 2), or better (0,1,−2)(0, 1, -2). The plane is y−2z+d=0y – 2z + d = 0, and with the point AA: 60−40+d=060 – 40 + d = 0, d=−20d = -20. The roof lies in

π: y−2z−20=0 \pi: \ y – 2z – 20 = 0

Check with CC: 70−50−20=070 – 50 – 20 = 0. Another way to get the same is the determinant ∣x−0y−60z−20100000105∣=0\begin{vmatrix} x – 0 & y – 60 & z – 20 \\ 100 & 0 & 0 \\ 0 & 10 & 5 \end{vmatrix} = 0, which says “the vector from AA to any point depends on the other two”.

A plane is infinite. The real roof is a piece of the plane π\pi, but in the calculations the plane carries on over the pitch and below the ground. If a projection lands “underground”, it is not a mistake: it is the plane carrying on.

The roof’s normal, entry by entry

The roof calculation, without skipping anything. The cross product of AB→=(100,0,0) \overrightarrow{AB} = (100, 0, 0) and AC→=(0,10,5) \overrightarrow{AC} = (0, 10, 5) is worked out component by component: for each one you cover that column and take the 2×2 2 \times 2 determinant of the other two (with the sign changed in the middle one):

StepCalculationResultWhy
First component0⋅5−0⋅10 0 \cdot 5 – 0 \cdot 10 0Cover the x x and cross the y y and the z z
Second component0⋅0−100⋅5 0 \cdot 0 – 100 \cdot 5 −500 -500 Cover the y y ; this is the one with the sign changed
Third component100⋅10−0⋅0 100 \cdot 10 – 0 \cdot 0 1000Cover the z z
Check(0,−500,1000)⋅(100,0,0)=0 (0, -500, 1000) \cdot (100, 0, 0) = 0 , (0,−500,1000)⋅(0,10,5)=−5000+5000=0 (0, -500, 1000) \cdot (0, 10, 5) = -5000 + 5000 = 0 Perpendicular to bothThat is what a normal has to satisfy; if it does not give 0, there is a sign error
SimplifyDivide by −500 -500 (0,1,−2) (0, 1, -2) Any multiple works as a normal: the plane is the same
Find d d 60−2⋅20+d=0 60 – 2 \cdot 20 + d = 0 d=−20 d = -20 A=(0,60,20) A = (0, 60, 20) is on the plane, so it has to satisfy the equation
Check with B B and C C 60−40−20=0 60 – 40 – 20 = 0 , 70−50−20=0 70 – 50 – 20 = 0 Both satisfy itIf one does not, the normal or d d is wrong

It makes sense that the normal has no x x component: the roof rises the same all along the touchline, from x=0 x = 0 to x=100 x = 100 , so it is perpendicular to that direction.

Check you’ve got it: is the point (50, 80, 30) on the roof? And the drone, at D = (10, 20, 30)?

The point (50,80,30) (50, 80, 30) is; the drone is not. Step by step: substitute into y−2z−20 y – 2z – 20 . For (50,80,30) (50, 80, 30) , 80−60−20=0 80 – 60 – 20 = 0 : it satisfies the equation, it is on the plane (the x x does not matter, because it does not appear). For D D , 20−60−20=−60≠0 20 – 60 – 20 = -60 \neq 0 : it is not. Keep that −60 -60 in mind: in the distances you will see that it tells you how far from the roof the drone is flying.

Relative positions

Knowing whether two lines meet, whether a line goes through a plane or whether two planes are parallel is a problem of ranks: it is the Rouché-Frobenius theorem from topic 2 in geometric form.

Two lines in space

Before the table, the idea in words. To know how two lines sit, you ask two questions, in this order. The first: do they go in the same direction? If the direction vectors are proportional, the lines are parallel or the same line, and to tell them apart you just check whether a point of one is on the other. The second, only if they go in different directions: do both fit in the same plane? If they do, since they are not parallel, they meet at a point. If they don’t, one passes over the other without touching it: they are skew, like the drone and the camera.

How do you check whether they fit in a plane? With the vector PQ→ \overrightarrow{PQ} , which goes from a point of one line to a point of the other. If the lines lie in one plane, the three vectors u⃗ \vec u , v⃗ \vec v and PQ→ \overrightarrow{PQ} lie in that plane and their rank is 2. If the rank is 3, the three point in directions that do not fit in a plane, and neither do the lines. That is what the table below says, with ranks.

With two lines r:P+λu⃗r: P + \lambda\vec u and s:Q+μv⃗s: Q + \mu\vec v, compare the rank of the direction vectors, rg(u⃗,v⃗)\text{rg}(\vec u, \vec v), with the rank including the vector joining a point of each, rg(u⃗,v⃗,PQ→)\text{rg}(\vec u, \vec v, \overrightarrow{PQ}):

rg(u⃗,v⃗)\text{rg}(\vec u, \vec v)rg(u⃗,v⃗,PQ→)\text{rg}(\vec u, \vec v, \overrightarrow{PQ})Position
11Coincident
12Parallel
22Intersecting (meet at one point)
23Skew (neither meet nor parallel)
The four relative positions of two lines in spaceFour drawings: two lines that coincide, two parallel ones, two that meet at a point, and two skew lines that neither meet nor are parallel. Under each, the ranks of the matrix of direction vectors and of the matrix with the vector PQ added.coincidentrg 1 · 1parallelrg 1 · 2intersectingrg 2 · 2skewrg 2 · 3rg(u, v) · rg(u, v, PQ)
In the plane there are only three cases; in space a fourth appears: skew lines.

The TV camera flies at 25 m along s:(0,0,25)+μ(1,1,0)s: (0, 0, 25) + \mu(1, 1, 0). With u⃗=(2,1,−1)\vec u = (2, 1, -1), v⃗=(1,1,0)\vec v = (1, 1, 0) and DQ→=(0,0,25)−(10,20,30)=(−10,−20,−5)\overrightarrow{DQ} = (0, 0, 25) – (10, 20, 30) = (-10, -20, -5): the direction vectors are not proportional (rg=2\text{rg} = 2), and

∣21−1110−10−20−5∣=2(−5−0)−1(−5−0)+(−1)(−20+10)=−10+5+10=5≠0 \begin{vmatrix} 2 & 1 & -1 \\ 1 & 1 & 0 \\ -10 & -20 & -5 \end{vmatrix} = 2(-5 – 0) – 1(-5 – 0) + (-1)(-20 + 10) = -10 + 5 + 10 = 5 \neq 0

Rank 3: skew. That is why the drones did not crash. If the camera had flown at 20 m, DQ→=(−10,−20,−10)\overrightarrow{DQ} = (-10, -20, -10), the determinant would be 0 and the lines would meet (at (30,30,20)(30, 30, 20)). In the plane the fourth case does not exist: two non-parallel lines always meet.

Check you’ve got it: if the camera flew along s: (5, 10, 25) + μ(1, 1, 0), would it be skew to the drone or would they meet? Where?

They would meet, at (20,25,25) (20, 25, 25) . Step by step: the direction vectors (2,1,−1) (2, 1, -1) and (1,1,0) (1, 1, 0) are the same as before, not proportional, so the rank of the direction vectors is 2 and the question is the second one. The vector between points is DQ→=(5,10,25)−(10,20,30)=(−5,−10,−5) \overrightarrow{DQ} = (5, 10, 25) – (10, 20, 30) = (-5, -10, -5) , and

∣21−1110−5−10−5∣=2(−5−0)−1(−5−0)+(−1)(−10+5)=−10+5+5=0 \begin{vmatrix} 2 & 1 & -1 \\ 1 & 1 & 0 \\ -5 & -10 & -5 \end{vmatrix} = 2(-5 – 0) – 1(-5 – 0) + (-1)(-10 + 5) = -10 + 5 + 5 = 0

Rank 2: they fit in a plane, they meet. For the point, equate the heights: the camera is always at 25 m and the drone is at 30−λ 30 – \lambda , so λ=5 \lambda = 5 and the drone is at (20,25,25) (20, 25, 25) . The camera gets there with μ=15 \mu = 15 : (5+15,10+15,25)=(20,25,25) (5 + 15, 10 + 15, 25) = (20, 25, 25) . The same point on both lines: this time they would crash.

Line and plane, two planes

A line and a plane can meet at a point, be parallel, or the line can lie in the plane. The quickest check is u⃗⋅n⃗\vec u \cdot \vec n:

  • If u⃗⋅n⃗≠0\vec u \cdot \vec n \neq 0, the line is not parallel to the plane: they meet at a point.
  • If u⃗⋅n⃗=0\vec u \cdot \vec n = 0, the line is parallel to the plane: if a point of the line is in the plane, it lies in it; if not, it is parallel.

The drone and the pitch: u⃗⋅(0,0,1)=−1≠0\vec u \cdot (0, 0, 1) = -1 \neq 0, they meet. The point comes from substituting the parametric equations into z=0z = 0: 30−λ=030 – \lambda = 0, λ=30\lambda = 30, the landing L=(70,50,0)L = (70, 50, 0). The plane x−2y+30=0x – 2y + 30 = 0 contains the line (it is one of its implicit equations), and x−2y=0x – 2y = 0 is parallel to it: u⃗⋅(1,−2,0)=2−2=0\vec u \cdot (1, -2, 0) = 2 – 2 = 0 and DD does not satisfy it (10−40≠010 – 40 \neq 0).

For two planes, the system of their two equations says it all: if rg(A)=rg(A∣B)=2\text{rg}(A) = \text{rg}(A \mid B) = 2, they meet in a line; if rg(A)=1\text{rg}(A) = 1 and rg(A∣B)=2\text{rg}(A \mid B) = 2, they are parallel; and if both ranks are 1, they are the same plane. Put more briefly: non-proportional normals, intersecting; proportional normals, parallel or coincident.

Two planes in spaceThree drawings: two parallel planes, two planes meeting in a line, and two coincident planes, with the ranks of the coefficient matrix and of the augmented matrix of the system formed by their equations.parallelrg(A) = 1, rg(A|B) = 2intersecting: a linerg(A) = rg(A|B) = 2coincidentrg(A) = rg(A|B) = 1
Two planes are never skew: they meet in a line, are parallel, or are the same plane.

The pitch (z=0z = 0) and a safety ceiling at 40 m (z=40z = 40) are parallel: equal normals and inconsistent equations. The pitch and the grandstand roof meet: their normals (0,0,1)(0, 0, 1) and (0,1,−2)(0, 1, -2) are not proportional.

Saying that two lines in space “meet” because their direction vectors are not parallel. That only rules out parallel and coincident; between intersecting and skew, the determinant with PQ→\overrightarrow{PQ} decides.

Distances

Before the formulas: the shortest path is always perpendicular

All the distances in this section are the same idea: the length of the shortest path, and the shortest path always arrives at a right angle. From the drone to the roof, the shortest path goes along the normal; from the center spot to the drone line, along a perpendicular to the line; between the drone and the camera, along the common perpendicular to both.

Start with point to plane, which is the one used most. Substitute the drone into the roof’s equation: y−2z−20 y – 2z – 20 is −60 -60 at D D , and 0 at any point of the roof. That number measures “how far off” the plane D D is, but not in metres. If from a point of the roof you move t t times the normal (0,1,−2) (0, 1, -2) , the expression changes by t⋅∣n⃗∣2=5t t \cdot |\vec n|^2 = 5t , while the distance travelled is t⋅∣n⃗∣=5 t t \cdot |\vec n| = \sqrt5\,t . So each metre of distance raises the expression by ∣n⃗∣=5 |\vec n| = \sqrt5 , and to go from “what the equation gives” to metres you divide by ∣n⃗∣ |\vec n| : 605 \tfrac{60}{\sqrt5} . That is the whole formula.

The other two come from areas and volumes. The distance from a point to a line is the height of a parallelogram: the area ∣PA→×u⃗∣ |\overrightarrow{PA} \times \vec u| divided by the base ∣u⃗∣ |\vec u| . The distance between two skew lines is the height of a prism (a parallelepiped): the volume ∣[PQ→,u⃗,v⃗]∣ |[\overrightarrow{PQ}, \vec u, \vec v]| divided by the area of the base ∣u⃗×v⃗∣ |\vec u \times \vec v| . The drone and the camera, step by step:

StepCalculationResultWhy
A point on each lineD=(10,20,30) D = (10, 20, 30) , Q=(0,0,25) Q = (0, 0, 25) DQ→=(−10,−20,−5) \overrightarrow{DQ} = (-10, -20, -5) It is the third edge of the prism
The baseu⃗×v⃗=(2,1,−1)×(1,1,0) \vec u \times \vec v = (2, 1, -1) \times (1, 1, 0) (1,−1,1) (1, -1, 1) Its modulus is the area of the parallelogram of the two directions
The area1+1+1 \sqrt{1 + 1 + 1} 3 \sqrt3 The modulus of the cross product
The volume(−10,−20,−5)⋅(1,−1,1)=−10+20−5 (-10, -20, -5) \cdot (1, -1, 1) = -10 + 20 – 5 5The scalar triple product, the same number as the determinant for the positions
The height∣5∣3 \tfrac{\lvert 5 \rvert}{\sqrt3} ≈2.89 \approx 2.89 mVolume divided by base: what separates them at a right angle

If the volume comes out 0, the prism is flattened: the lines fit in a plane and meet, at distance 0. That is why the same determinant decides the position and gives the distance.

DistanceFormulaAt the match
Point to point∣AB→∣\lvert\overrightarrow{AB}\rvertTake-off to landing: 306≈73.4830\sqrt6 \approx 73.48 m
Point to plane∣ax0+by0+cz0+d∣a2+b2+c2\dfrac{\lvert ax_0 + by_0 + cz_0 + d\rvert}{\sqrt{a^2 + b^2 + c^2}}Drone to roof: 605=125≈26.83\tfrac{60}{\sqrt5} = 12\sqrt5 \approx 26.83 m
Point to line∣PA→×u⃗∣∣u⃗∣\dfrac{\lvert\overrightarrow{PA} \times \vec u\rvert}{\lvert\vec u\rvert}Center spot to the drone line: 102≈14.1410\sqrt2 \approx 14.14 m
Between skew lines∣[PQ→,u⃗,v⃗]∣∣u⃗×v⃗∣\dfrac{\lvert[\overrightarrow{PQ}, \vec u, \vec v]\rvert}{\lvert\vec u \times \vec v\rvert}Drone to camera: 53≈2.89\tfrac{5}{\sqrt3} \approx 2.89 m

The calculations, one by one:

  • Drone to roof: π:y−2z−20=0\pi: y – 2z – 20 = 0 and D=(10,20,30)D = (10, 20, 30): ∣20−60−20∣0+1+4=605=125\dfrac{|20 – 60 – 20|}{\sqrt{0 + 1 + 4}} = \dfrac{60}{\sqrt5} = 12\sqrt5.
  • Center spot to the line: C=(50,30,0)C = (50, 30, 0), DC→=(40,10,−30)\overrightarrow{DC} = (40, 10, -30), DC→×u⃗=(10⋅(−1)−(−30)⋅1, −30⋅2−40⋅(−1), 40⋅1−10⋅2)=(20,−20,20)\overrightarrow{DC} \times \vec u = (10 \cdot (-1) – (-30) \cdot 1,\ -30 \cdot 2 – 40 \cdot (-1),\ 40 \cdot 1 – 10 \cdot 2) = (20, -20, 20), with modulus 20320\sqrt3; divided by ∣u⃗∣=6|\vec u| = \sqrt6: 2036=202=102\tfrac{20\sqrt3}{\sqrt6} = \tfrac{20}{\sqrt2} = 10\sqrt2.
  • Drone to camera: the numerator is the determinant from before, 5 (the scalar triple product), and u⃗×v⃗=(1,−1,1)\vec u \times \vec v = (1, -1, 1), with modulus 3\sqrt3.
Two skew pathsThe drone line and the TV camera line are neither parallel nor intersecting: they are skew. The black segment is the common perpendicular, which measures 5 over root 3, about 2.89 metres.d ≈ 2.89 mrsd(r, s) = |[PQ, u, v]| / |u × v|u × v = (1, −1, 1)PQ = (−10, −20, −5)PQ · (u × v) = 5d = 5/√3 ≈ 2.89 mat 20 m, the camera linewould meet r at (30, 30, 20)
They pass less than 3 m apart: no crash, but someone should warn the pilot.

The distance between two skew lines is the length of their common perpendicular, the shortest segment joining them. If they meet, it is 0; if they are parallel, it is the distance from a point of one to the other.

Angles

Angles are worked out with the dot product from topic 4, with an absolute value to stay between 0∘0^\circ and 90∘90^\circ:

  • Two lines: cos⁡θ=∣u⃗⋅v⃗∣∣u⃗∣∣v⃗∣\cos\theta = \dfrac{|\vec u \cdot \vec v|}{|\vec u||\vec v|}. The drone and the camera: ∣2+1+0∣6⋅2=312=32\dfrac{|2 + 1 + 0|}{\sqrt6 \cdot \sqrt2} = \dfrac{3}{\sqrt{12}} = \dfrac{\sqrt3}{2}, so θ=30∘\theta = 30^\circ.
  • Two planes: the same with the normals. The pitch and the roof: cos⁡θ=∣(0,0,1)⋅(0,1,−2)∣1⋅5=25\cos\theta = \dfrac{|(0, 0, 1) \cdot (0, 1, -2)|}{1 \cdot \sqrt5} = \dfrac{2}{\sqrt5}, θ≈26.57∘\theta \approx 26.57^\circ: the slope of the roof.
  • Line and plane: with the sine, because the normal makes the complementary angle with the line: sin⁡φ=∣u⃗⋅n⃗∣∣u⃗∣∣n⃗∣\sin\varphi = \dfrac{|\vec u \cdot \vec n|}{|\vec u||\vec n|}. The drone’s descent: sin⁡φ=∣−1∣6⋅1=16\sin\varphi = \dfrac{|-1|}{\sqrt6 \cdot 1} = \dfrac{1}{\sqrt6}, φ≈24.09∘\varphi \approx 24.09^\circ.
The drone's descent angleThe drone line goes down towards the pitch at an angle φ of about 24 degrees. The angle with the vertical normal is 90 degrees minus φ, which is why the sine is used instead of the cosine for a line and a plane.pitch (z = 0)nr (the drone)φ ≈ 24°90° − φline and plane: use the normalsin φ = |u·n| / (|u||n|)= 1/√6 → φ ≈ 24.09°two lines / two planes:cos θ = |u·v| / (|u||v|)(with the normals for planes)the absolute value keeps the anglebetween 0° and 90°
With the normal you get the complementary angle: that is why a line and a plane use sine instead of cosine.

Using the cosine between the line and the plane’s normal and giving that as the angle between line and plane. You get 90∘−φ90^\circ – \varphi: with the drone, 65.91∘65.91^\circ instead of 24.09∘24.09^\circ.

Angles, read out loud

The three formulas are the same question: how far apart are two directions? Between two lines, the direction vectors. Between two planes, the normals, because a plane tilts exactly as much as its post: the roof rises 26.57∘ 26.57^\circ and its normal leans away from the vertical by those same 26.57∘ 26.57^\circ . Between a line and a plane, the line against the post, and that is why you get the complementary angle and use the sine.

And the absolute value? A line has no one-way sense: (2,1,−1) (2, 1, -1) and (−2,−1,1) (-2, -1, 1) are the same drone line. With the second direction vector, the cosine with the camera would be −32 -\tfrac{\sqrt3}{2} , that is, 150∘ 150^\circ , which is the same pair of lines seen from the other side. The absolute value keeps the small angle, the one that is always asked for: 30∘ 30^\circ .

Check you’ve got it: what angle does the drone line make with the roof plane?

About 33.21∘ 33.21^\circ . Step by step: it is a line and a plane, so sine, with u⃗=(2,1,−1) \vec u = (2, 1, -1) and the roof’s normal n⃗=(0,1,−2) \vec n = (0, 1, -2) . The dot product is 0+1+2=3 0 + 1 + 2 = 3 ; the moduli, 6 \sqrt6 and 5 \sqrt5 . That leaves sin⁡φ=330≈0.5477 \sin\varphi = \tfrac{3}{\sqrt{30}} \approx 0.5477 , and φ≈33.21∘ \varphi \approx 33.21^\circ . If you had used the cosine, you would have given 56.79∘ 56.79^\circ , the angle with the roof’s post, not with the roof.

Projections, reflections and the perpendicular bisector plane

To project a point PP onto a plane (the closest point of the plane) draw the line through PP in the direction of the normal and intersect it with the plane. The reflection P′P' is on the other side, at the same distance: the projection HH is the midpoint of PP and P′P', so P′=2H−PP' = 2H – P.

Distance to a plane, projection and reflectionA plane seen edge-on. From the drone D the perpendicular to the plane meets it at H, the projection; on the other side, at the same distance, lies the reflection D prime.D (the drone)H (projection)D' (reflection)dπ: grandstand roofd(D, π) =|ax₀ + by₀ + cz₀ + d|──────────────√(a² + b² + c²)H: D + t·n on πD' = 2H − DH is the midpointof D and D'
All three come from the same line: the one through D in the direction of the normal.

The drone onto the roof: the line D+tn⃗=(10,20+t,30−2t)D + t\vec n = (10, 20 + t, 30 – 2t) in π\pi gives (20+t)−2(30−2t)−20=0(20 + t) – 2(30 – 2t) – 20 = 0, that is, 5t−60=05t – 60 = 0, t=12t = 12. The projection is H=(10,32,6)H = (10, 32, 6) and the reflection, D′=2H−D=(10,44,−18)D' = 2H – D = (10, 44, -18). Check: d(D,H)=12∣n⃗∣=125d(D, H) = 12|\vec n| = 12\sqrt5, the same distance as in the table. (And yes, D′D' ends up under the grass: the roof plane carries on.)

The simplest case is the reflection in the pitch: the reflection of (x,y,z)(x, y, z) in z=0z = 0 is (x,y,−z)(x, y, -z). The drone shows up in a puddle at (10,20,−30)(10, 20, -30).

The other way round, the perpendicular bisector plane of two points AA and BB is the plane in which they are reflections of each other: the plane of the points at the same distance from both. It goes through the midpoint and its normal is AB→\overrightarrow{AB}. Between take-off and landing: midpoint (40,35,15)(40, 35, 15), normal (2,1,−1)(2, 1, -1), so 2x+y−z+d=02x + y – z + d = 0 with 80+35−15+d=080 + 35 – 15 + d = 0: 2x+y−z−100=02x + y – z – 100 = 0. It is exactly what the exam asks as “the plane with respect to which PP and QQ are symmetric”.

Check a reflection with two questions: is the midpoint of PP and P′P' in the plane? Is PP′→\overrightarrow{PP'} proportional to the normal? If both answers are yes, it is right.

Geometric transformations

Moving a figure (translating, rotating, reflecting or enlarging it) is applying a transformation. In the plane, with a trick, they can all be written as a 3×33 \times 3 matrix: homogeneous coordinates, which write the point (x,y)(x, y) as (x,y,1)(x, y, 1). That extra 1 lets the translation, which is not linear, also be a matrix product.

TransformationMatrix
Translation by (a,b)(a, b)(10a01b001)\begin{pmatrix} 1 & 0 & a \\ 0 & 1 & b \\ 0 & 0 & 1 \end{pmatrix}
Rotation by an angle θ\theta about the origin(cos⁡θ−sin⁡θ0sin⁡θcos⁡θ0001)\begin{pmatrix} \cos\theta & -\sin\theta & 0 \\ \sin\theta & \cos\theta & 0 \\ 0 & 0 & 1 \end{pmatrix}
Reflection in the xx axis(1000−10001)\begin{pmatrix} 1 & 0 & 0 \\ 0 & -1 & 0 \\ 0 & 0 & 1 \end{pmatrix}
Scaling by a factor kk from the origin(k000k0001)\begin{pmatrix} k & 0 & 0 \\ 0 & k & 0 \\ 0 & 0 & 1 \end{pmatrix}

To chain movements you multiply the matrices, and order matters: the one that acts first goes on the right. On the tactics board, the coach turns the move 90° and then shifts it by (2,−1)(2, -1). The ball at B=(3,1)B = (3, 1) ends up at T⋅G⋅BT \cdot G \cdot B:

G=(0−10100001),T=(10201−1001),T G(311)=T(−131)=(121) G = \begin{pmatrix} 0 & -1 & 0 \\ 1 & 0 & 0 \\ 0 & 0 & 1 \end{pmatrix}, \quad T = \begin{pmatrix} 1 & 0 & 2 \\ 0 & 1 & -1 \\ 0 & 0 & 1 \end{pmatrix}, \quad T\,G\begin{pmatrix} 3 \\ 1 \\ 1 \end{pmatrix} = T\begin{pmatrix} -1 \\ 3 \\ 1 \end{pmatrix} = \begin{pmatrix} 1 \\ 2 \\ 1 \end{pmatrix}

If you translate first and then rotate (G⋅TG \cdot T), the ball ends up at (0,5)(0, 5): somewhere else.

Turning and translating, in both ordersThe point B = (3, 1) turned 90 degrees about the origin goes to (−1, 3) and, translated by (2, −1), ends at (1, 2). If it is translated first to (5, 0) and then turned, it ends at (0, 5).−4−3−2−112345−112345xyB = (3, 1)turned(1, 2)(5, 0)(0, 5)turn 90° then translate (2, −1)G: (3, 1) → (−1, 3)T: (−1, 3) → (1, 2)T·G·B = (1, 2, 1)translate then turn(3, 1) → (5, 0) → (0, 5)order matters:matrices do not commuteT · G ≠ G · T
With homogeneous coordinates each movement is a 3 × 3 matrix, and chaining them is multiplying them.

Notice that the 90° rotation is the multiplication by ii from topic 7: (3,1)→(−1,3)(3, 1) \to (-1, 3) is (3+i)⋅i=−1+3i(3 + i) \cdot i = -1 + 3i. Complex numbers are the short way of writing rotations in the plane, and matrices are the way that also works in space.

Conics

Conics are the curves of the plane whose equation is of second degree in xx and yy:

Ax2+Bxy+Cy2+Dx+Ey+F=0 Ax^2 + Bxy + Cy^2 + Dx + Ey + F = 0

They are called that because they come from cutting a cone with a plane. The match has all four: the center circle (a circle of radius 9 m around (50,30)(50, 30)), the parabola the ball draws in a clearance, an ellipse (the shadow of the circle seen in perspective) and a hyperbola (the curves that appear when a floodlight’s cone of light meets the ground).

The conics of the matchFour curves: the center circle of the pitch, an ellipse, a hyperbola with its asymptotes and the parabola the ball draws in a clearance.circle(x−50)²+(y−30)²=81ellipsex²/9 + y²/4 = 1hyperbolax²/4 − y² = 1parabolaz = x − x²/402 × 2 block determinant: > 0 ellipse · < 0 hyperbola · = 0 parabola
They are all second-degree equations in x and y; the sign of the determinant tells you which.

How to tell which one it is, with no xyxy term (B=0B = 0): complete the squares. For example, 4x2+9y2−16x+54y+61=04x^2 + 9y^2 – 16x + 54y + 61 = 0:

4(x2−4x)+9(y2+6y)+61=0 ⇒ 4(x−2)2−16+9(y+3)2−81+61=0 ⇒ (x−2)29+(y+3)24=1 4(x^2 – 4x) + 9(y^2 + 6y) + 61 = 0 \ \Rightarrow\ 4(x – 2)^2 – 16 + 9(y + 3)^2 – 81 + 61 = 0 \ \Rightarrow\ \frac{(x – 2)^2}{9} + \frac{(y + 3)^2}{4} = 1

An ellipse with center (2,−3)(2, -3) and semi-axes 3 and 2. And the center circle, (x−50)2+(y−30)2=81(x – 50)^2 + (y – 30)^2 = 81, expanded gives x2+y2−100x−60y+3319=0x^2 + y^2 – 100x – 60y + 3319 = 0.

The quick rule uses the conic’s matrix (the coefficients of the degree-2 terms, with BB split into two halves): the sign of the determinant of the block (AB/2B/2C)\begin{pmatrix} A & B/2 \\ B/2 & C \end{pmatrix} gives the type.

AC−B24AC – \tfrac{B^2}{4}Type
>0> 0Elliptic (ellipse or circle; if A=CA = C and B=0B = 0, a circle)
<0< 0Hyperbolic (hyperbola)
=0= 0Parabolic (parabola)

With the ellipse above: 4⋅9−0=36>04 \cdot 9 – 0 = 36 > 0. If, on top of that, the determinant of the full 3×33 \times 3 matrix is 0, the conic is degenerate (a point, two lines or nothing): for the ellipse it is −1296-1296, so it is a genuine ellipse.

For the curious. If there is an xyxy term, the conic is rotated. To straighten it you diagonalise the 2×22 \times 2 block (topics 5 and 6): the eigenvectors give the axes and the eigenvalues, the coefficients of the reduced equation. In space, second-degree equations in xx, yy, zz are quadric surfaces: the sphere (the drone’s safety zone, (x−10)2+(y−20)2+(z−30)2=25(x – 10)^2 + (y – 20)^2 + (z – 30)^2 = 25), the ellipsoid, the paraboloid of a satellite dish, the hyperboloid of cooling towers, the cone and the cylinder.

The same in MATLAB

MATLAB has no “line” or “plane” functions: you work with the vectors and the formulas, using dot (dot product), cross (cross product), norm (modulus) and rank.

D = [10 20 30];  L = [70 50 0];
u = L - D                  % the vector from take-off to landing
u = u/30                   % the same one, simplified
norm(L - D)                % distance flown
n = [0 1 -2];              % roof normal: y - 2z - 20 = 0
abs(dot(n, D) - 20)/norm(n)          % distance from the drone to the roof
v = [1 1 0];  Q = [0 0 25];          % the TV camera
rank([u; v]), rank([u; v; Q - D])    % 2 and 3: skew
abs(dot(Q - D, cross(u, v)))/norm(cross(u, v))   % distance between r and s
asin(abs(dot(u, [0 0 1]))/norm(u))*180/pi        % descent angle

Output:

u =

    60    30   -30

u =

     2     1    -1

ans =

   73.4847

ans =

   26.8328

ans =

     2

ans =

     3

ans =

    2.8868

ans =

   24.0948

The two ranks (2 and 3) say “skew”, and the distance between the lines, 2.8868≈532.8868 \approx \tfrac{5}{\sqrt3}, is the one in the drawing. abs(dot(n, D) - 20) is ∣ax0+by0+cz0+d∣|ax_0 + by_0 + cz_0 + d| written with the dot product: n⃗⋅D=20−60=−40\vec n \cdot D = 20 – 60 = -40, and −40−20=−60-40 – 20 = -60.

Transformations are matrix products, and the order shows:

G = [0 -1 0; 1 0 0; 0 0 1];     % 90 degree rotation
T = [1 0 2; 0 1 -1; 0 0 1];     % translation (2, -1)
B = [3; 1; 1];                  % the ball, in homogeneous coordinates
T*G*B                           % rotate first, then translate
G*T*B                           % the other way round

Output:

ans =

     1
     2
     1

ans =

     0
     5
     1

Common mistakes in this topic

  • Subtracting points the wrong way round when working out a vector or a reflection.
  • Giving a line in space with a single equation: that is a plane.
  • Saying “they meet” just because the direction vectors are not parallel, without looking at the determinant with PQ→\overrightarrow{PQ}.
  • Cosine with the normal for the angle between a line and a plane (you get the complementary one).
  • Forgetting the absolute value in distances and angles.
  • Multiplying transformation matrices in reading order: the first one to act goes on the right.
  • Classifying a conic without completing squares, or with the sign of the determinant flipped.

Try it in the MATLAB playground

In the MATLAB playground you can move the drone and the camera:

% Do the drone and the camera lines meet or are they skew?
D = [10 20 30];  u = [2 1 -1];   % the drone
Q = [0 0 25];    v = [1 1 0];    % the camera (try Q = [0 0 20])
r2 = rank([u; v])
r3 = rank([u; v; Q - D])
d = abs(dot(Q - D, cross(u, v)))/norm(cross(u, v))

Things to look at:

  1. With Q = [0 0 20], r3 drops to 2 and d to 0: the lines meet.
  2. Change v to [4 2 -2]: r2 drops to 1 (parallel) and the formula for d stops working (u⃗×v⃗=0\vec u \times \vec v = 0).
  3. Work out where the drone meets the pitch: lambda = D(3)/1 and D + lambda*u.
  4. Try cross(u, v) and check with dot that it is perpendicular to u and to v.

Summary

ConceptWhat it isHow to work it out
Vector between pointsDisplacement from AA to BBAB→=B−A\overrightarrow{AB} = B – A
LinePoint + directionVector, parametric, symmetric or two planes
PlanePoint + normalax+by+cz+d=0ax + by + cz + d = 0, normal (a,b,c)(a, b, c)
PositionsCoincident, parallel, intersecting, skewRanks (Rouché) or u⃗⋅n⃗\vec u \cdot \vec n
Point-plane distanceThe shortest way to the plane∣ax0+by0+cz0+d∣/∣n⃗∣\lvert ax_0 + by_0 + cz_0 + d\rvert / \lvert\vec n\rvert
Distance between skew linesThe common perpendicular∣[PQ→,u⃗,v⃗]∣/∣u⃗×v⃗∣\lvert[\overrightarrow{PQ}, \vec u, \vec v]\rvert / \lvert\vec u \times \vec v\rvert
AnglesBetween 0∘0^\circ and 90∘90^\circCosine with directions or normals; sine between line and plane
Reflection in a planeThe mirror imageProjection HH and P′=2H−PP' = 2H – P
Perpendicular bisector planePoints equidistant from AA and BBMidpoint and normal AB→\overrightarrow{AB}
TransformationsMovements as 3×33 \times 3 matricesHomogeneous coordinates; chaining = multiplying
ConicsSecond-degree curvesComplete the squares or the sign of AC−B2/4AC – B^2/4

Three ideas to take away:

  1. Line = point + direction; plane = point + normal. Almost every exercise starts by getting those two pieces.
  2. Relative position is Rouché in disguise: ranks of the direction vectors (or normals) and of the full system.
  3. In space, two lines can fail to meet without being parallel. They are skew, and the distance between them comes from the scalar triple product.

Now it is your turn: in the affine space guided practice we solve five problems step by step, checked in MATLAB: the equations of the drone line and the roof, relative positions with ranks, distances, angles and reflections, a transformation and a conic, and a complete exercise in the exam format. And to check you have got it, the affine space exercises go from easy to hard and come with commented solutions and a quiz like the Campus ones. This topic closes the AG syllabus; if you are coming from complex numbers, you now have both geometry exercises of the exam. And when you want to test yourself on the whole syllabus, the AG mock exams are waiting: the 20-question test with the Campus rules and the practical part on paper, with step-by-step solutions.

Next step: practiceAffine space — guided practice with the spidercam, the ball going up, the scoreboard and an exam exercise step by step (and the plane that came out perpendicular instead of parallel)

Did this article help you? Here is how you can support SergioLearns →