Options
All
  • Public
  • Public/Protected
  • All
Menu

Class McGeToolClass

McGeTool

example

Hierarchy

  • McGeToolClass

Index

Constructors

Properties

mxgeTool: any = null

Methods

  • 计算闭合的区域面积

    example
    
    

    Parameters

    Returns number

    number

  • initImp(): any
  • Returns 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");
    }

    Parameters

    Returns boolean

    any