MCPcopy Create free account
hub / github.com/BIMCoderLiang/LNLib / dist

Method dist

src/LNLib/Algorithm/Voronoi.cpp:527–533  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

525}
526
527float LNLib::VoronoiDiagramGenerator::dist(struct Site* s, struct Site* t)
528{
529 float dx, dy;
530 dx = s->coord.x - t->coord.x;
531 dy = s->coord.y - t->coord.y;
532 return (float)(sqrt(dx * dx + dy * dy));
533}
534
535void LNLib::VoronoiDiagramGenerator::makevertex(struct Site* v)
536{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected