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

Class Point

pdal/QuadIndex.hpp:48–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46class PointView;
47
48struct Point
49{
50 Point(double x, double y) : x(x), y(y) { }
51 Point(const Point& other) : x(other.x), y(other.y) { }
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;
61
62 Point& operator=(const Point&); // not implemented
63};
64
65struct QuadPointRef
66{

Callers 4

overlapsMethod · 0.70
addPointMethod · 0.70
QImplMethod · 0.70
getPointsMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected