0_0_38740185_6142.cpp: In function 'double PointToSegDist(double, double, double, double, double, double)':
0_0_38740185_6142.cpp:7:32: error: 'Math' was not declared in this scope
7 | if (cross <= 0) return Math.Sqrt((x - x1) * (x - x1) + (y - y1) * (y - y1));
| ^~~~
0_0_38740185_6142.cpp:10:33: error: 'Math' was not declared in this scope
10 | if (cross >= d2) return Math.Sqrt((x - x2) * (x - x2) + (y - y2) * (y - y2));
| ^~~~
0_0_38740185_6142.cpp:15:16: error: 'Math' was not declared in this scope
15 | return Math.Sqrt((x - px) * (x - px) + (y - py) * (y - py))
| ^~~~
0_0_38740185_6142.cpp:15:68: error: expected ';' before '}' token
15 | return Math.Sqrt((x - px) * (x - px) + (y - py) * (y - py))
| ^
| ;
16 | }
| ~
|