MathLabs

Problem 2

Given a point AA and a segment BCBC, determine the locus of all points PP in space for which ∠APX=90∘\angle APX=90^\circ for some point XX on the segment BCBC.
Step 2 of 4: Use linear interpolation
In plain words

A continuous linear quantity crosses zero between the endpoints precisely under the sign condition.

f(t)=(A−P)⋅((1−t)(B−P)+t(C−P))=(1−t)f(0)+tf(1)f(t)=(A-P)\cdot((1-t)(B-P)+t(C-P))=(1-t)f(0)+tf(1)
Detailed analysis

Define f(t)f(t) to be the dot product. It is affine in tt, so some t∈[0,1]t\in[0,1] satisfies f(t)=0f(t)=0 exactly when f(0)f(0) and f(1)f(1) have opposite signs or one is zero.