# Class: MultiPolygon
# Hierarchy
- MultiPolygon
# Constructors
# constructor
+ new MultiPolygon(polygons
: AnyPoint2D[][]): MultiPolygon
Defined in multi-polygon.ts:9 (opens new window)
Parameters:
Name | Type |
---|---|
polygons | AnyPoint2D[][] |
Returns: MultiPolygon
# Accessors
# area
• get area(): number
Defined in multi-polygon.ts:17 (opens new window)
Returns: number
# bounds
• get bounds(): Rectangle‹›
Defined in multi-polygon.ts:22 (opens new window)
Returns: Rectangle‹›
# Methods
# segmentation
▸ segmentation(): number[][]
Defined in multi-polygon.ts:28 (opens new window)
Returns: number[][]
# Static
getArea
▸ getArea(polygons
: Point2D‹› | object | [number, number][] | Polygon‹›[]): number
Defined in multi-polygon.ts:32 (opens new window)
Parameters:
Name | Type |
---|---|
polygons | Point2D‹› | object | [number, number][] | Polygon‹›[] |
Returns: number
# Static
getBounds
▸ getBounds(polygons
: Point2D‹› | object | [number, number][] | Polygon‹›[]): Rectangle
Defined in multi-polygon.ts:40 (opens new window)
Parameters:
Name | Type |
---|---|
polygons | Point2D‹› | object | [number, number][] | Polygon‹›[] |
Returns: Rectangle