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

Method sqDist

pdal/QuadIndex.hpp:54–57  ·  view source on GitHub ↗

Calculates the distance-squared to another point.

Source from the content-addressed store, hash-verified

52
53 // Calculates the distance-squared to another point.
54 double sqDist(const Point& other) const
55 {
56 return (x - other.x) * (x - other.x) + (y - other.y) * (y - other.y);
57 }
58
59 const double x;
60 const double y;

Callers 1

addPointMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected