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.
Table of Contents
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 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 and a basis of vectors. We will use the standard one: the origin at a corner of the pitch, the axis along the touchline (100 m), the axis along the goal line (60 m) and the axis upwards. The pitch is the plane .
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, , with the same axes, and redo the sums. Subtracting the center spot from each point gives its new coordinates:
| What | Origin at the corner | Origin at the center spot | Why |
|---|---|---|---|
| Take-off | It is a place: its numbers say how far to walk from the origin, and the origin has changed | ||
| Landing | The same: another origin, other numbers | ||
| When you subtract, the shift of the origin cancels out in the two coordinates: only the drone’s movement is left | |||
| , which from the corner is | You get a different spot depending on the origin: it is not a place on the pitch | ||
| , which from the corner is | 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.
There are three rules linking points and vectors:
- Two points give a vector: , subtracting coordinates.
- A point plus a vector gives a point: .
- The midpoint of and is .
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 .
The distance between two points is the modulus of the vector joining them: . The drone takes off from and lands at : and metres.
Subtracting the wrong way round. , end minus start. 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 in the direction of , which we simplify by dividing by 30: . Any non-zero multiple works as a direction vector.
Before the formulas: the line as a clock
Before seeing the four forms, think how you would say where the drone goes. It leaves and each time it moves the same amount: 2 metres in , 1 in and it drops 1. Imagine it moves every second and set a clock, , that counts the seconds since take-off:
| Calculation | Point | Why | |
|---|---|---|---|
| 0 | It has not moved yet: take-off | ||
| 1 | One step of | ||
| 10 | Ten steps: | ||
| 30 | Height 0: the landing | ||
| 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 or at . The flight is a piece, but the line carries on both ways, with negative and with greater than 30.
Writing the line is saying that sentence with symbols: “the point where the drone is equals take-off plus 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 . Step by step: the coordinate says , so . With that same clock, and : both match. What you have to check is that the same works for all three coordinates; if each one asked for a different , the point would not be on the line.
The same line can be written in several ways:
| Form | Drone line |
|---|---|
| Vector | |
| Parametric | |
| Symmetric (continuous) | |
| Implicit (two planes) |
Each value of is a point on the line: is take-off, gives , the landing, and gives , a point along the way. The implicit equations come from the symmetric form by equating the fractions two at a time: gives , and gives . Check with : and .
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, , and its vector is perpendicular to the line. A pass on the grass from player to player goes in the direction , that is, ; the line is (it satisfies and ). Its slope is .
For the curious. The same equation in space is no longer a line: since it says nothing about , it is the vertical plane containing the line of the pass. That is why you always need to know whether you are in or in .
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 of the plane, the rule is: a point is on the plane if the path from to is perpendicular to the normal, that is, if . 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 . The second way is the most useful: if , the plane is
and the coefficients of , , are the normal vector. The pitch is : normal , pointing up.
How do you get the normal from two directions and of the plane? With the cross product from topic 4: , which is perpendicular to both. For example, the grandstand roof goes through , and :
Simplifying, , or better . The plane is , and with the point : , . The roof lies in
Check with : . Another way to get the same is the determinant , which says “the vector from to any point depends on the other two”.
A plane is infinite. The real roof is a piece of the plane , 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 and is worked out component by component: for each one you cover that column and take the determinant of the other two (with the sign changed in the middle one):
| Step | Calculation | Result | Why |
|---|---|---|---|
| First component | 0 | Cover the and cross the and the | |
| Second component | Cover the ; this is the one with the sign changed | ||
| Third component | 1000 | Cover the | |
| Check | , | Perpendicular to both | That is what a normal has to satisfy; if it does not give 0, there is a sign error |
| Simplify | Divide by | Any multiple works as a normal: the plane is the same | |
| Find | is on the plane, so it has to satisfy the equation | ||
| Check with and | , | Both satisfy it | If one does not, the normal or is wrong |
It makes sense that the normal has no component: the roof rises the same all along the touchline, from to , 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 is; the drone is not. Step by step: substitute into . For , : it satisfies the equation, it is on the plane (the does not matter, because it does not appear). For , : it is not. Keep that 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 , which goes from a point of one line to a point of the other. If the lines lie in one plane, the three vectors , and 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 and , compare the rank of the direction vectors, , with the rank including the vector joining a point of each, :
| Position | ||
|---|---|---|
| 1 | 1 | Coincident |
| 1 | 2 | Parallel |
| 2 | 2 | Intersecting (meet at one point) |
| 2 | 3 | Skew (neither meet nor parallel) |
The TV camera flies at 25 m along . With , and : the direction vectors are not proportional (), and
Rank 3: skew. That is why the drones did not crash. If the camera had flown at 20 m, , the determinant would be 0 and the lines would meet (at ). 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 . Step by step: the direction vectors and 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 , and
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 , so and the drone is at . The camera gets there with : . 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 :
- If , the line is not parallel to the plane: they meet at a point.
- If , 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: , they meet. The point comes from substituting the parametric equations into : , , the landing . The plane contains the line (it is one of its implicit equations), and is parallel to it: and does not satisfy it ().
For two planes, the system of their two equations says it all: if , they meet in a line; if and , 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.
The pitch () and a safety ceiling at 40 m () are parallel: equal normals and inconsistent equations. The pitch and the grandstand roof meet: their normals and 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 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: is at , and 0 at any point of the roof. That number measures “how far off” the plane is, but not in metres. If from a point of the roof you move times the normal , the expression changes by , while the distance travelled is . So each metre of distance raises the expression by , and to go from “what the equation gives” to metres you divide by : . 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 divided by the base . The distance between two skew lines is the height of a prism (a parallelepiped): the volume divided by the area of the base . The drone and the camera, step by step:
| Step | Calculation | Result | Why |
|---|---|---|---|
| A point on each line | , | It is the third edge of the prism | |
| The base | Its modulus is the area of the parallelogram of the two directions | ||
| The area | The modulus of the cross product | ||
| The volume | 5 | The scalar triple product, the same number as the determinant for the positions | |
| The height | m | Volume 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.
| Distance | Formula | At the match |
|---|---|---|
| Point to point | Take-off to landing: m | |
| Point to plane | Drone to roof: m | |
| Point to line | Center spot to the drone line: m | |
| Between skew lines | Drone to camera: m |
The calculations, one by one:
- Drone to roof: and : .
- Center spot to the line: , , , with modulus ; divided by : .
- Drone to camera: the numerator is the determinant from before, 5 (the scalar triple product), and , with modulus .
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 and :
- Two lines: . The drone and the camera: , so .
- Two planes: the same with the normals. The pitch and the roof: , : the slope of the roof.
- Line and plane: with the sine, because the normal makes the complementary angle with the line: . The drone’s descent: , .
Using the cosine between the line and the plane’s normal and giving that as the angle between line and plane. You get : with the drone, instead of .
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 and its normal leans away from the vertical by those same . 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: and are the same drone line. With the second direction vector, the cosine with the camera would be , that is, , 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: .
Check you’ve got it: what angle does the drone line make with the roof plane?
About . Step by step: it is a line and a plane, so sine, with and the roof’s normal . The dot product is ; the moduli, and . That leaves , and . If you had used the cosine, you would have given , the angle with the roof’s post, not with the roof.
Projections, reflections and the perpendicular bisector plane
To project a point onto a plane (the closest point of the plane) draw the line through in the direction of the normal and intersect it with the plane. The reflection is on the other side, at the same distance: the projection is the midpoint of and , so .
The drone onto the roof: the line in gives , that is, , . The projection is and the reflection, . Check: , the same distance as in the table. (And yes, ends up under the grass: the roof plane carries on.)
The simplest case is the reflection in the pitch: the reflection of in is . The drone shows up in a puddle at .
The other way round, the perpendicular bisector plane of two points and 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 . Between take-off and landing: midpoint , normal , so with : . It is exactly what the exam asks as “the plane with respect to which and are symmetric”.
Check a reflection with two questions: is the midpoint of and in the plane? Is 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 matrix: homogeneous coordinates, which write the point as . That extra 1 lets the translation, which is not linear, also be a matrix product.
| Transformation | Matrix |
|---|---|
| Translation by | |
| Rotation by an angle about the origin | |
| Reflection in the axis | |
| Scaling by a factor from the origin |
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 . The ball at ends up at :
If you translate first and then rotate (), the ball ends up at : somewhere else.
Notice that the 90° rotation is the multiplication by from topic 7: is . 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 and :
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 ), 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).
How to tell which one it is, with no term (): complete the squares. For example, :
An ellipse with center and semi-axes 3 and 2. And the center circle, , expanded gives .
The quick rule uses the conic’s matrix (the coefficients of the degree-2 terms, with split into two halves): the sign of the determinant of the block gives the type.
| Type | |
|---|---|
| Elliptic (ellipse or circle; if and , a circle) | |
| Hyperbolic (hyperbola) | |
| Parabolic (parabola) |
With the ellipse above: . If, on top of that, the determinant of the full matrix is 0, the conic is degenerate (a point, two lines or nothing): for the ellipse it is , so it is a genuine ellipse.
For the curious. If there is an term, the conic is rotated. To straighten it you diagonalise the 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 , , are quadric surfaces: the sphere (the drone’s safety zone, ), 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, , is the one in the drawing. abs(dot(n, D) - 20) is written with the dot product: , and .
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 .
- 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:
- With
Q = [0 0 20],r3drops to 2 anddto 0: the lines meet. - Change
vto[4 2 -2]:r2drops to 1 (parallel) and the formula fordstops working (). - Work out where the drone meets the pitch:
lambda = D(3)/1andD + lambda*u. - Try
cross(u, v)and check withdotthat it is perpendicular touand tov.
Summary
| Concept | What it is | How to work it out |
|---|---|---|
| Vector between points | Displacement from to | |
| Line | Point + direction | Vector, parametric, symmetric or two planes |
| Plane | Point + normal | , normal |
| Positions | Coincident, parallel, intersecting, skew | Ranks (Rouché) or |
| Point-plane distance | The shortest way to the plane | |
| Distance between skew lines | The common perpendicular | |
| Angles | Between and | Cosine with directions or normals; sine between line and plane |
| Reflection in a plane | The mirror image | Projection and |
| Perpendicular bisector plane | Points equidistant from and | Midpoint and normal |
| Transformations | Movements as matrices | Homogeneous coordinates; chaining = multiplying |
| Conics | Second-degree curves | Complete the squares or the sign of |
Three ideas to take away:
- Line = point + direction; plane = point + normal. Almost every exercise starts by getting those two pieces.
- Relative position is Rouché in disguise: ranks of the direction vectors (or normals) and of the full system.
- 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 →



