MCPcopy Create free account
hub / github.com/PDAL/PDAL / mag2

Function mag2

pdal/private/MathUtils.cpp:401–404  ·  view source on GitHub ↗

Return the square of the magnitude between (x1, y1) and (x2, y2)

Source from the content-addressed store, hash-verified

399
400// Return the square of the magnitude between (x1, y1) and (x2, y2)
401double mag2(double x1, double y1, double x2, double y2)
402{
403 return (x2 - x1) * (x2 - x1) + (y2 - y1) * (y2 - y1);
404}
405
406} // unnamed namespace
407

Callers 1

barycentricInterpolationFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected