MCPcopy Create free account
hub / github.com/ProbableTrain/MapGenerator / subdividePolygon

Method subdividePolygon

src/ts/impl/polygon_util.ts:80–136  ·  view source on GitHub ↗

* Recursively divide a polygon by its longest side until the minArea stopping condition is met

(p: Vector[], minArea: number)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

stepDivideMethod · 0.80

Calls 9

calcPolygonAreaMethod · 0.80
lengthMethod · 0.80
subMethod · 0.80
cloneMethod · 0.80
multiplyScalarMethod · 0.80
normalizeMethod · 0.80
polygonToPolygonArrayMethod · 0.80
polygonArrayToPolygonMethod · 0.80
addMethod · 0.45

Tested by

no test coverage detected