//该函数方法:根据点的信息顺序连接构成多边形,然后进行判定该点是否在多边形内
getAnchorLocation:
function (number) {
//Intersection.pointInPolygon
var polyWorPos =
this.node.getChildByName(
"up").convertToWorldSpaceAR(cc.Vec2.ZERO);
var polyHeight =
this.node.getChildByName(
"up").height;
var polyWidth =
this.no