Function planePolygonArea

    • 使用 Shoelace Theorem 求多边形面积
    • calculate the area of a polygon using the Shoelace Theorem

    Parameters

    • points: [number, number][] | LineString | Point[]

      可以为点类型数组、LineString 类型或者二维数组(需要为墨卡托平面坐标系下)

      • 需确保点按照顺时针或者逆时针排列
      • need to ensure that the points are arranged clockwise or counterclockwise
    • radius: number = 1

    Returns number

Generated using TypeDoc