mark constexpr all generic functions

This commit is contained in:
BlackMATov
2021-02-24 04:41:23 +07:00
parent e95b9cf898
commit 7c0427ce76
8 changed files with 97 additions and 97 deletions

View File

@@ -129,7 +129,7 @@ TEST_CASE("vmath/fun") {
STATIC_CHECK(distance2(-5.f, -10.f) == uapprox(25.f));
STATIC_CHECK(dot(2.f, 5.f) == uapprox(10.f));
CHECK(normalize(0.5f) == uapprox(1.f));
STATIC_CHECK(normalize(0.5f) == uapprox(1.f));
STATIC_CHECK(faceforward(1.f, 2.f, 3.f) == uapprox(-1.f));
STATIC_CHECK(reflect(1.f, 2.f) == uapprox(-7.f));