Test any point in polygon collider

Is their any alternative of test any point in polygon collider in 3.4 Like cc.Intersection.pointInPolygon() this in 2.4.
@RAAng @huynhthuan @linrm @zzf520 @slackmoehrle @nutrino

You can upgrade to Cocos Creator 3.5 or above to use cc.Intersection2D. pointInPolygon()