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

Function CompareArrays

code/PostProcessing/FindInstancesProcess.h:85–92  ·  view source on GitHub ↗

------------------------------------------------------------------------------- @brief Perform a component-wise comparison of two arrays * * @param first First array * @param second Second array * @param size Size of both arrays * @param e Epsilon * @return true if the arrays are identical */

Source from the content-addressed store, hash-verified

83 * @return true if the arrays are identical
84 */
85inline bool CompareArrays(const aiVector3D* first, const aiVector3D* second,
86 unsigned int size, float e) {
87 for (const aiVector3D* end = first+size; first != end; ++first,++second) {
88 if ( (*first - *second).SquareLength() >= e)
89 return false;
90 }
91 return true;
92}
93
94// and the same for colors ...
95inline bool CompareArrays(const aiColor4D* first, const aiColor4D* second,

Callers 1

ExecuteMethod · 0.85

Calls 1

GetColorDifferenceFunction · 0.85

Tested by

no test coverage detected