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

Method SetOrientation

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

Source from the content-addressed store, hash-verified

95}
96
97void Camera::SetOrientation(const Quaternion& newOrientation)
98{
99 world = Float4x4(XMMatrixRotationQuaternion(newOrientation.ToSIMD()));
100 orientation = newOrientation;
101 world.SetTranslation(position);
102
103 WorldMatrixChanged();
104}
105
106void Camera::SetNearClip(float newNearClip)
107{

Callers 1

Calls 3

Float4x4Class · 0.85
SetTranslationMethod · 0.80
ToSIMDMethod · 0.45

Tested by

no test coverage detected