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

Method SetXRotation

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

Source from the content-addressed store, hash-verified

217}
218
219void FirstPersonCamera::SetXRotation(float xRotation)
220{
221 xRot = Clamp(xRotation, -XM_PIDIV2, XM_PIDIV2);
222 SetOrientation(Quaternion(XMQuaternionRotationRollPitchYaw(xRot, yRot, 0)));
223}
224
225void FirstPersonCamera::SetYRotation(float yRotation)
226{

Callers 2

InitializeSceneMethod · 0.80
UpdateMethod · 0.80

Calls 2

ClampFunction · 0.85
QuaternionClass · 0.85

Tested by

no test coverage detected