Fix Quaternion arc constructor to check dot & Add test for same vec3s

This commit is contained in:
Silc Lizard (Tokage) Renew 2025-01-19 20:44:59 +09:00
parent 7b1ed520bd
commit 27e23280c5
2 changed files with 16 additions and 5 deletions

View file

@ -263,6 +263,9 @@ TEST_CASE("[Quaternion] Construct Shortest Arc For 180 Degree Arc") {
// For the consistency of the rotation direction, they should be symmetrical to the plane.
CHECK(left_to_right.is_equal_approx(right_to_left.inverse()));
// If vectors are same, no rotation.
CHECK(Quaternion(diagonal_up, diagonal_up).is_equal_approx(Quaternion()));
}
TEST_CASE("[Quaternion] Get Euler Orders") {