Use A plus t times the segment direction to locate one exact point on a
line segment.
Example
Walk along a segment with A+t(B-A).
highlighted = computed this step
Step 1 — Set up
Set up the exact input values.
segment and t((1, 1), (5, 3), 1/2)
Step 2 — Direction
Compute the highlighted value.
B-A(4, 2)
Step 3 — x coordinate
Compute the highlighted value.
x3
Step 4 — y coordinate
Compute the highlighted value.
y2
Step 5 — Result
Compute the highlighted value.
P(t)(3, 2)
parametric-segmentA parametric segment writes every point as A+t(B-A), so the same exact t value can later describe where a clipped line enters or exits.