------------------------------------------------------------------------------- @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 */
| 83 | * @return true if the arrays are identical |
| 84 | */ |
| 85 | inline 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 ... |
| 95 | inline bool CompareArrays(const aiColor4D* first, const aiColor4D* second, |
no test coverage detected