Update QuaternionTests.hpp
Some checks failed
Build Docs With Doxygen / Explore-Gitea-Actions (push) Successful in 37s
Run tests / Explore-Gitea-Actions (push) Failing after 2m25s

fix compilation of latest on windows????
This commit is contained in:
2024-06-28 17:32:37 -04:00
parent e754170fd1
commit 1236c90cfb
2 changed files with 4 additions and 1 deletions

View File

@@ -34,7 +34,7 @@ set_target_properties(J3ML PROPERTIES LINKER_LANGUAGE CXX)
CPMAddPackage(
NAME jtest
URL https://git.redacted.cc/josh/jtest/archive/Prerelease-4.zip
URL https://git.redacted.cc/josh/jtest/archive/Prerelease-5.zip
)
target_include_directories(J3ML PUBLIC ${jtest_SOURCE_DIR}/include)

View File

@@ -1,4 +1,6 @@
#pragma once
#include <cmath>
#include <J3ML/LinearAlgebra/Quaternion.h>
using namespace J3ML::LinearAlgebra;
@@ -57,6 +59,7 @@ int QuaternionTests()
Quaternion correct = PreciseSlerp(q, q2, t);
Quaternion fast = q.Slerp(q2, t);
magnitudeError = std::max(magnitudeError, std::abs(1.f - fast.LengthSquared()));
Quaternion lerp = q.Lerp(q2, t);
}