Fix Quaternion arc constructor to check dot & Add test for same vec3s
This commit is contained in:
parent
7b1ed520bd
commit
27e23280c5
2 changed files with 16 additions and 5 deletions
|
|
@ -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") {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue