MCPcopy Index your code
hub / github.com/ProbableTrain/MapGenerator / isValidSample

Method isValidSample

src/ts/impl/grid_storage.ts:66–85  ·  view source on GitHub ↗

* Tests whether v is at least d away from samples * Performance very important - this is called at every integration step * @param dSq=this.dsepSq squared test distance * Could be dtest if we are integrating a streamline

(v: Vector, dSq=this.dsepSq)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 5

getSampleCoordsMethod · 0.95
vectorOutOfBoundsMethod · 0.95
vectorFarFromVectorsMethod · 0.95
cloneMethod · 0.80
addMethod · 0.45

Tested by

no test coverage detected