MCPcopy Create free account
hub / github.com/assimp/assimp / ArrayBounds

Function ArrayBounds

code/PostProcessing/ProcessHelper.h:236–242  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

234 */
235template <typename T>
236inline void ArrayBounds(const T *in, unsigned int size, T &min, T &max) {
237 MinMaxChooser<T>()(min, max);
238 for (unsigned int i = 0; i < size; ++i) {
239 min = std::min(in[i], min);
240 max = std::max(in[i], max);
241 }
242}
243
244// -------------------------------------------------------------------------------
245/** Little helper function to calculate the quadratic difference

Callers 7

FilterPolygonFunction · 0.85
WriteBoundsFunction · 0.85
FindMeshCenterFunction · 0.85
ComputePositionEpsilonFunction · 0.85
TriangulateMeshMethod · 0.85

Calls 2

minFunction · 0.70
maxFunction · 0.70

Tested by

no test coverage detected