Skip to content

@miyue-mma/shared / isPointInConvexPolygon

函数: isPointInConvexPolygon()

ts
function isPointInConvexPolygon(polygon, point): boolean

判断点是否在图形内

参数

polygon

IPoint[]

多边形坐标数组

point

IPoint

返回

boolean

Released under the MIT License.