MCPcopy Create free account
hub / github.com/InteractiveComputerGraphics/CompactNSearch / resize

Method resize

include/PointSet.h:116–129  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

114 }
115
116 void resize(Real const* x, std::size_t n)
117 {
118 m_x = x;
119 m_n = n;
120 m_keys.resize(n, {
121 std::numeric_limits<int>::lowest(),
122 std::numeric_limits<int>::lowest(),
123 std::numeric_limits<int>::lowest() });
124 m_old_keys.resize(n, {
125 std::numeric_limits<int>::lowest(),
126 std::numeric_limits<int>::lowest(),
127 std::numeric_limits<int>::lowest() });
128 m_neighbors.resize(n);
129 }
130
131 Real const* point(unsigned int i) const { return &m_x[3*i]; }
132

Callers 4

z_sortMethod · 0.80
initMethod · 0.80
PointSetClass · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected