MCPcopy Create free account
hub / github.com/ElectroZybr/LatticeLab / setChild

Method setChild

Lattice/tests/test.cpp:40–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38 static const OctreeNode* child(const OctreeNode& node, int index) { return node.children[index].get(); }
39 static OctreeNode* child(OctreeNode& node, int index) { return node.children[index].get(); }
40 static void setChild(OctreeNode& node, int index, std::unique_ptr<OctreeNode> childNode) { node.children[index] = std::move(childNode); }
41};
42
43static bool isClose(float a, float b, float eps = 1e-4f) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected