Home › Survey calculations › Line intersection
Intersection of two lines
Building corner to reconstruct, crossing of two alignments, road centreline crossing a boundary, or intersection from two stations: give each line by two points or by a point and a bearing, the tool computes the intersection point.
Result
How to use the calculator
- For each line, choose Through two points (alignment, façade, boundary) or Point + bearing (shot from a station).
- Enter the coordinates and, if needed, the bearing in the unit chosen at the top.
- The intersection point, the angle between the lines and the distances from A and C appear immediately, with a diagram.
The calculation method
Each line is written P = A + t·u, with u = B − A (two points) or u = (sin G, cos G) (point + bearing). At the intersection point, A + t·u = C + s·v. The determinant d = uX·vY − uY·vX is zero if the lines are parallel; otherwise:
- t = ((XC − XA)·vY − (YC − YA)·vX) / d
- X = XA + t·uX and Y = YA + t·uY
Example
Line 1 through A (486,300.000; 362,200.000) and B (486,400.000; 362,290.000); line 2 through C (486,310.000; 362,300.000) and D (486,420.000; 362,185.000).
- Intersection I: X = 486,356.776 ; Y = 362,251.098
- Angle between the lines: 98.0669 gon, almost at right angles: the point is well defined
- Distances: A → I = 76.384 m; C → I = 67.671 m. I is on both segments.
Frequently asked questions
How do you calculate the intersection of two lines in surveying?
Write each line as P = A + t·u (a point and a direction), then solve the two-unknown system. With bearings G₁ and G₂ from A and C: t = ((XC − XA)·cos G₂ − (YC − YA)·sin G₂) / sin(G₂ − G₁), then X = XA + t·sin G₁ and Y = YA + t·cos G₁.
What is intersection by bearings?
It is the calculation of an inaccessible point sighted from two known stations: at each station, the direction of the point is measured, which gives a bearing. The point is at the intersection of the two sights. Choose “Point + bearing” for both lines.
What happens if the lines are almost parallel?
The point exists but is poorly defined: a small angle error moves it a lot. The tool warns you when the angle between the lines is less than 10 gon. Preferably sight with an angle close to 100 gon.
Can the point be outside the segments?
Yes. The calculation uses the extended lines and shows, in “two points” mode, whether the intersection falls on the segment or on its extension.