Merge remote-tracking branch 'origin/main'
Some checks failed
Run tests / Explore-Gitea-Actions (push) Failing after 2m23s
Build Docs With Doxygen / Explore-Gitea-Actions (push) Successful in 19s

This commit is contained in:
2024-07-01 14:23:14 -04:00
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-3.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);
}