Use rcpSafe.

This commit is contained in:
Бранимир Караџић
2024-10-09 19:55:49 -07:00
parent b8741eaf6f
commit 34d2948860
3 changed files with 7 additions and 5 deletions

View File

@@ -670,6 +670,8 @@ void mtxCheck(const float* _a, const float* _b)
TEST_CASE("vec3", "[math][vec3]")
{
REQUIRE(bx::isEqual({0.0f, 0.0f, 0.0f}, bx::normalize({0.0f, 0.0f, 0.0f}), 0.0f) );
bx::Vec3 normalized = bx::normalize({0.0f, 1.0f, 0.0f});
REQUIRE(bx::isEqual(normalized, {0.0f, 1.0f, 0.0f}, 0.0f) );