Library / Geometry, coordinates, surveying and trigonometry / GEO-26
Geometry, coordinates, surveying and trigonometry
Point dividing a segment internally
The x-coordinate of the point P on the segment from A to B for which AP : PB = m : n.
- Ref
- GEO-26
- Rev
- v1
- Field
- Geometry, coordinates, surveying and trigonometry
- Result
- Px [cm]
The point P that divides the segment from A to B in the ratio AP : PB = m : n has coordinates ((n x₁ + m x₂)/(m + n), (n y₁ + m y₂)/(m + n)). The weight on B equals the first number of the ratio. For m = n it gives the midpoint. The x-coordinate is shown; the y-coordinate, from the y-values, is in the derived rows.
The x-coordinate of the point P on the segment from A to B for which AP : PB = m : n. The weight on B is the first part of the ratio. For the y-coordinate use y1 and y2.
Calculator
- P y-coordinate4 cm
- Fraction of the way from A to B, m/(m + n)0.3333
- Distance AB10.82 cm
What drives the result
Each variable is moved across its typical range while the others stay at the values above. The longest bar is the key driver.
- P lies 33.3 % of the way from A(1, 2) to B(10, 8), at (4, 4).
- Setting m = n puts P at the midpoint, 5.5 cm in x.
Chart data as tables
Ranked variables
| Variable | Typical range | Lowest result | Highest result | Swing (cm) | Local step | Change in result |
|---|---|---|---|---|---|---|
| x1 Point A, x | −10 to 10 cm | −3.333 | 10 | 13.33 | +0.4 cm | +6.67 % |
| x2 Point B, x | −10 to 20 cm | −2.667 | 7.333 | 10 | +0.6 cm | +5 % |
| n Second part of the ratio | 0.1 to 10 | 1.818 | 9.182 | 7.364 | +10% | −4.69 % |
| m First part of the ratio AP : PB | 0.1 to 10 | 1.429 | 8.5 | 7.071 | +10% | +4.84 % |
| y1 Point A, y | −10 to 10 cm | 4 | 4 | 0 | +0.4 cm | 0 % |
| y2 Point B, y | −10 to 20 cm | 4 | 4 | 0 | +0.6 cm | 0 % |
Sweep of First part of the ratio AP : PB
| First part of the ratio AP : PB | Point x-coordinate (cm) |
|---|---|
| 0.1 | 1.429 |
| 1.338 | 4.607 |
| 2.575 | 6.066 |
| 3.813 | 6.903 |
| 5.05 | 7.447 |
| 6.287 | 7.828 |
| 7.525 | 8.11 |
| 8.762 | 8.328 |
| 10 | 8.5 |
Sweep one variable
Variables and how each one contributes
Point x-coordinate
What the equation gives you. Everything else feeds it.
Point A, x
The x-coordinate of point A, in cm. Pulls the point towards A by the share n/(m + n) of the change. Raising it by 0.5 (to 1.5) moves the result by +8.33 %, from 4 to 4.333 cm.
Point A, y
The y-coordinate of point A, in cm. It does not change P_x; it sets P_y. Does not change P_x. It moves P_y by n/(m + n) times the change.
Point B, x
The x-coordinate of point B, in cm. Pulls the point towards B by the share m/(m + n) of the change. Raising it by 0.5 (to 10.5) moves the result by +4.17 %, from 4 to 4.167 cm.
Point B, y
The y-coordinate of point B, in cm. It does not change P_x; it sets P_y. Does not change P_x. It moves P_y by m/(m + n) times the change.
First part of the ratio AP : PB
The first part of the ratio AP : PB, a positive number. A larger m puts P further from A and nearer B. Moves the point towards B. Raising it by 0.1 (to 1.1) moves the result by +4.84 %, from 4 to 4.194 cm.
Second part of the ratio
The second part of the ratio, a positive number. A larger n puts P nearer A. Moves the point towards A. Raising it by 0.1 (to 2.1) moves the result by −2.42 %, from 4 to 3.903 cm.
Worked example with the values above
- The ratio 1 : 2 puts P at the fraction m/(m + n) = 0.33333 of the way from A to B.
- x: 1 + 0.33333 × (10 − 1) = 4.
- P = (4, 4) cm.
Assumptions and limits
- Plane (two-dimensional) Cartesian coordinates in one consistent unit.
- The two points or the two direction vectors are not the same, and neither vector has zero length.
Common mistakes
- Swapping which end of the ratio multiplies which point in the division formula.
- Forgetting the absolute value in the distance or area formula.
- Using the gradient when the line is vertical and the gradient is undefined.
Statistics and uncertainty
These are exact algebraic results from the coordinates, so the uncertainty comes from the inputs. Near-parallel lines and nearly collinear points are the cases where small input errors give large changes in angles or areas.
Where it is used
- Clearances, offsets and angles between members in drawings, CAD and surveying.
- Areas of plots, plates and polygon pieces from corner coordinates.
Maths you need
- Gradient: rise over run of a line
- Vector: direction and length written as (x, y)
- Dot product: the sum of products of components