MCPcopy Create free account
hub / github.com/TheRealMJP/DeferredTexturing / SetWorldMatrix

Method SetWorldMatrix

SampleFramework12/v1.00/Graphics/Camera.cpp:80–87  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78}
79
80void Camera::SetWorldMatrix(const Float4x4& newWorld)
81{
82 world = newWorld;
83 position = world.Translation();
84 orientation = Quaternion(XMQuaternionRotationMatrix(world.ToSIMD()));
85
86 WorldMatrixChanged();
87}
88
89void Camera::SetPosition(const Float3& newPosition)
90{

Callers

nothing calls this directly

Calls 3

QuaternionClass · 0.85
TranslationMethod · 0.80
ToSIMDMethod · 0.45

Tested by

no test coverage detected