Update QuaternionTests.hpp
fix compilation of latest on windows????
This commit is contained in:
@@ -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)
|
||||
|
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user