let arr=[[4,3],[4,9],[7,8],[9,8],[10,10],[10,4]]
I know [7,8],[9,8]
there it is pit, I want to write a function to get the concave point in this array how can I write.
I've used graphics algorithms, but not for complex concave edges. Then I thought about whether I could handle the data that the server gave me, which is a polygon.
In theory, you could get the area of the polygon. Then get the area of the polygon again by skipping a point. If the polygon is greater than the original area, you got a concave point.