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 3 of 4: Identify the endpoint signs
In plain words

The familiar right-angle sphere converts each endpoint dot product into a ball-membership test.

f(0)=(P−A)⋅(P−B),f(1)=(P−A)⋅(P−C)f(0)=(P-A)\cdot(P-B),\quad f(1)=(P-A)\cdot(P-C)
Detailed analysis

Changing both factors to P−AP-A gives the same dot products. By Thales' theorem, (P−A)⋅(P−B)≤0(P-A)\cdot(P-B)\le0 means that PP lies in the closed ball with diameter ABAB; similarly for ACAC.