MCPcopy Create free account
hub / github.com/baldurk/renderdoc / RotationXYZ

Method RotationXYZ

renderdoc/maths/matrix.cpp:246–255  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

244}
245
246Matrix4f Matrix4f::RotationXYZ(const Vec3f &rot)
247{
248 Quatf Qx = Quatf::AxisAngle(Vec3f(1.0f, 0.0f, 0.0f), rot.x);
249 Quatf Qy = Quatf::AxisAngle(Vec3f(0.0f, 1.0f, 0.0f), rot.y);
250 Quatf Qz = Quatf::AxisAngle(Vec3f(0.0f, 0.0f, 1.0f), rot.z);
251
252 Quatf R = Qz * Qy * Qx;
253
254 return R.GetMatrix();
255}
256
257Matrix4f Matrix4f::Orthographic(const float Near, const float Far)
258{

Callers

nothing calls this directly

Calls 2

Vec3fClass · 0.70
GetMatrixMethod · 0.45

Tested by

no test coverage detected