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

Method offset

io/private/copcwriter/Grid.cpp:127–133  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

125}
126
127void Grid::offset(std::array<double, 3>& vals)
128{
129 // Divide before sum to avoid overflow.
130 vals[0] = m_bounds.maxx / 2 + m_bounds.minx / 2;
131 vals[1] = m_bounds.maxy / 2 + m_bounds.miny / 2;
132 vals[2] = m_bounds.maxz / 2 + m_bounds.minz / 2;
133}
134
135void Grid::scale(std::array<double, 3>& vals)
136{

Callers 1

writeMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected