| |
|
A part of techInterview.org: answers to technical interview questions.
Your host: Michael Pryor |
Let P' be the symmetry point of P about the x axis, and P'' be the symmetry point of P' of the line y=mx. Then for any points E and R, PE+ER+RP=PE+ER+RP'>=PE+EP'=PE+EP''>=PP''. The E and R that will make those "=" true satisfy the following: E is the intersection point of PP'' and y=mx; R is the intersection point of P'E and the x axis.
|
Powered by FogBugz
