MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / RotationX

Function RotationX

Source/Engine/Tests/TestMath.cpp:12–16  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10#include <ThirdParty/catch2/catch.hpp>
11
12static Quaternion RotationX(float angle)
13{
14 const float halfAngle = angle * 0.5f;
15 return Quaternion(Math::Sin(halfAngle), 0.0f, 0.0f, Math::Cos(halfAngle));
16}
17
18TEST_CASE("Math")
19{

Callers 1

TestMath.cppFile · 0.70

Calls 3

QuaternionFunction · 0.50
SinFunction · 0.50
CosFunction · 0.50

Tested by

no test coverage detected