update external headers

This commit is contained in:
Nick Fisher
2022-02-06 13:28:28 +08:00
parent 6d5a63d398
commit bd3d0d080b
150 changed files with 27445 additions and 14805 deletions

View File

@@ -14,8 +14,8 @@
* limitations under the License.
*/
#ifndef MATH_TVECHELPERS_H_
#define MATH_TVECHELPERS_H_
#ifndef TNT_MATH_TVECHELPERS_H
#define TNT_MATH_TVECHELPERS_H
#include <math/compiler.h>
@@ -477,6 +477,13 @@ private:
return v;
}
friend inline VECTOR<T> MATH_PURE sign(VECTOR<T> v) {
for (size_t i = 0; i < v.size(); i++) {
v[i] = std::copysign(T(1), v[i]);
}
return v;
}
friend inline VECTOR<T> MATH_PURE pow(VECTOR<T> v, T p) {
for (size_t i = 0; i < v.size(); i++) {
v[i] = std::pow(v[i], p);
@@ -622,4 +629,4 @@ private:
} // namespace math
} // namespace filament
#endif // MATH_TVECHELPERS_H_
#endif // TNT_MATH_TVECHELPERS_H