From 6921fc34388450fcc99b2504aeb60a0e4403765e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=91=D1=80=D0=B0=D0=BD=D0=B8=D0=BC=D0=B8=D1=80=20=D0=9A?= =?UTF-8?q?=D0=B0=D1=80=D0=B0=D1=9F=D0=B8=D1=9B?= Date: Fri, 8 Oct 2021 19:06:53 -0700 Subject: [PATCH] Cleanup. --- examples/36-sky/sky.cpp | 4 ++-- examples/common/bounds.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/36-sky/sky.cpp b/examples/36-sky/sky.cpp index 7c2d3bb98..a4896d8f5 100644 --- a/examples/36-sky/sky.cpp +++ b/examples/36-sky/sky.cpp @@ -287,11 +287,11 @@ namespace bx::sin(latitude) * bx::sin(m_delta) + bx::cos(latitude) * bx::cos(m_delta) * bx::cos(hh) ); - const bx::Quaternion rot0 = bx::rotateAxis(m_upDir, -azimuth); + const bx::Quaternion rot0 = bx::fromAxisAngle(m_upDir, -azimuth); const bx::Vec3 dir = bx::mul(m_northDir, rot0); const bx::Vec3 uxd = bx::cross(m_upDir, dir); - const bx::Quaternion rot1 = bx::rotateAxis(uxd, altitude); + const bx::Quaternion rot1 = bx::fromAxisAngle(uxd, altitude); m_sunDir = bx::mul(dir, rot1); } diff --git a/examples/common/bounds.cpp b/examples/common/bounds.cpp index 7c92cb3da..41a9bc723 100644 --- a/examples/common/bounds.cpp +++ b/examples/common/bounds.cpp @@ -1046,7 +1046,7 @@ Srt toSrt(const void* _mtx) void mtxFromSrt(float* _outMtx, const Srt& _srt) { - mtxQuat(_outMtx, _srt.rotation); + mtxFromQuaternion(_outMtx, _srt.rotation); store(&_outMtx[0], mul(load(&_outMtx[0]), _srt.scale.x) ); store(&_outMtx[4], mul(load(&_outMtx[4]), _srt.scale.y) );