Class McGeToolClass

McGeTool

Example: ```typescript ```

Constructors

Properties

Methods

Constructors

Properties

mxgeTool: any = null

Methods

  • 计算闭合的区域面积

    Parameters

    Returns number

    number

    Example

    
    
    
    
  • Returns any

  • 判断点是否在一个闭合的多边形区域。

    Parameters

    Returns boolean

    any

    Example

         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");
    }