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

Method SetLookAt

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

Source from the content-addressed store, hash-verified

68}
69
70void Camera::SetLookAt(const Float3 &eye, const Float3 &lookAt, const Float3 &up)
71{
72 view = Float4x4(XMMatrixLookAtLH(eye.ToSIMD(), lookAt.ToSIMD(), up.ToSIMD()));
73 world = Float4x4::Invert(view);
74 position = eye;
75 orientation = Quaternion(XMQuaternionRotationMatrix(world.ToSIMD()));
76
77 WorldMatrixChanged();
78}
79
80void Camera::SetWorldMatrix(const Float4x4& newWorld)
81{

Callers 1

PrepareShadowCascadesFunction · 0.80

Calls 3

Float4x4Class · 0.85
QuaternionClass · 0.85
ToSIMDMethod · 0.45

Tested by

no test coverage detected