mirror of
https://github.com/orange-cpp/omath.git
synced 2026-06-15 11:44:34 +00:00
fix
This commit is contained in:
@@ -662,7 +662,7 @@ namespace omath
|
|||||||
template<class Type = float, MatStoreType St = MatStoreType::ROW_MAJOR>
|
template<class Type = float, MatStoreType St = MatStoreType::ROW_MAJOR>
|
||||||
requires std::is_floating_point_v<Type>
|
requires std::is_floating_point_v<Type>
|
||||||
[[nodiscard("You must use extracted rotation")]]
|
[[nodiscard("You must use extracted rotation")]]
|
||||||
Vector3<Type> mat_extract_rotation_zyx(const Mat<4, 4, Type, St>& mat) noexcept
|
constexpr Vector3<Type> mat_extract_rotation_zyx(const Mat<4, 4, Type, St>& mat) noexcept
|
||||||
{
|
{
|
||||||
const auto scale = mat_extract_scale(mat);
|
const auto scale = mat_extract_scale(mat);
|
||||||
const auto m00 = mat.at(0, 0) / scale.x;
|
const auto m00 = mat.at(0, 0) / scale.x;
|
||||||
|
|||||||
Reference in New Issue
Block a user