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

Method distance

filters/private/hexer/BaseGrid.cpp:197–202  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

195}
196
197double BaseGrid::distance(const Point& p1, const Point& p2)
198{
199 double xdist = p2.m_x - p1.m_x;
200 double ydist = p2.m_y - p1.m_y;
201 return std::sqrt(xdist * xdist + ydist * ydist);
202}
203
204// Compute hex size based on distance between consecutive points and
205// density

Callers 1

processOneMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected