mirror of
https://github.com/BlackMATov/vmath.hpp.git
synced 2025-12-16 22:19:51 +07:00
mark constexpr all generic functions
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user