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

Method sliceRectangle

src/ts/impl/polygon_util.ts:12–27  ·  view source on GitHub ↗

* Slices rectangle by line, returning smallest polygon

(origin: Vector, worldDimensions: Vector, p1: Vector, p2: Vector)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 2

polygonArrayToPolygonMethod · 0.80
calcPolygonAreaMethod · 0.80

Tested by

no test coverage detected