ARC042B
https://gyazo.com/263d6aa4a32eefc4ab4ee0a3987ad48f
Thoughts.
Distance between a point and a line segment
Distance to the foot of the perpendicular line if it is in the line segment, otherwise distance to either of the end points
Endpoints are not possible this time due to the conditions of convex polygons.
The leg of the perpendicular line from P to AB can be obtained by removing the directional component of AB from AP
Official Explanation
I solved it with vectors, but the official explanation was in the complex plane.
---
This page is auto-translated from /nishio/ARC042B using DeepL. If you looks something interesting but the auto-translated English is not good enough to understand it, feel free to let me know at @nishio_en. I'm very happy to spread my thought to non-Japanese readers.