mirror of
https://github.com/luanti-org/luanti.git
synced 2025-12-24 23:45:20 +01:00
Use matrix4::getRotationRadians
This commit is contained in:
@@ -100,7 +100,7 @@ SECTION("matrix-euler roundtrip") {
|
||||
test_euler_angles_rad([](v3f rad) {
|
||||
matrix4 mat, mat2;
|
||||
mat.setRotationRadians(rad);
|
||||
v3f rad2 = mat.getRotationDegrees() * core::DEGTORAD;
|
||||
v3f rad2 = mat.getRotationRadians();
|
||||
mat2.setRotationRadians(rad2);
|
||||
CHECK(matrix_equals(mat, mat2));
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user