MCPcopy Create free account
hub / github.com/WarFrontIO/client / smoothPath

Function smoothPath

src/map/area/BoatPathfinding.ts:304–317  ·  view source on GitHub ↗

* Smooths the path by removing unnecessary points. * @param path The path to smooth * @returns The smoothed path

(path: number[])

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

calculateBoatWaypointsFunction · 0.85

Calls 2

checkLineOfSightFunction · 0.90
pushMethod · 0.80

Tested by

no test coverage detected