Private mxge计算闭合的区域面积
构成区域面积的顶点位置集合
number
Private init判断点是否在一个闭合的多边形区域。
点的坐标位置
闭合多边形区域的顶点坐标集合
any
let aryPoint:Array<THREE.Vector3> = [];
aryPoint.push(new THREE.Vector3(0,0,0));
aryPoint.push(new THREE.Vector3(0,100,0));
aryPoint.push(new THREE.Vector3(100,100,0));
aryPoint.push(new THREE.Vector3(100,0,0));
let pt:THREE.Vector3 = new THREE.Vector3(150,150);
if(McGeTool.pointInPolyline(pt,aryPoint) ){
console.log("in");
}
McGeTool
Example: ```typescript ```