Example
Use a ratio to locate a point along a segment.
highlighted = computed this step
Step 1 — Plot partition point
Plot A, B, and partition point P.
Coordinate plot
Step 2 — Ratio fraction
Turn the ratio into a fraction of the segment.
t=1/(1+2)=31
Step 3 — Partition x-coordinate
Move that fraction in the x-direction.
x=2+31⋅(8−2)=4
Step 4 — Partition y-coordinate
Move that fraction in the y-direction.
y=1+31⋅(7−1)=3
Step 5 — Partition point
State the partition point.
P=(4,3)
partition-segment
P = A + (m/(m+n))(B-A)