This commit is contained in:
Andrey Chulkov 2020-05-07 04:31:47 +03:00
parent 602cc0eedd
commit d610d40b8a

View File

@ -28,7 +28,7 @@ public:
explicit Cell(std::vector<std::unique_ptr<Cell>> children_); explicit Cell(std::vector<std::unique_ptr<Cell>> children_);
[[nodiscard]] const Cell * find(Float64 x, Float64 y) const override; [[nodiscard]] const Cell * find(Float64 x, Float64 y) const;
private: private:
std::vector<std::unique_ptr<Cell>> children; std::vector<std::unique_ptr<Cell>> children;
@ -50,7 +50,7 @@ public:
/** Retrieves the cell containing a given point. /** Retrieves the cell containing a given point.
* A null pointer is returned when the point falls outside the grid. * A null pointer is returned when the point falls outside the grid.
*/ */
[[nodiscard]] const Cell * find(Float64 x, Float64 y) const override; [[nodiscard]] const Cell * find(Float64 x, Float64 y) const;
/** When a cell is split every side is split into kSplit pieces producing kSplit * kSplit equal smaller cells. */ /** When a cell is split every side is split into kSplit pieces producing kSplit * kSplit equal smaller cells. */
static constexpr size_t kSplit = 4; static constexpr size_t kSplit = 4;