mirror of
https://github.com/orange-cpp/omath.git
synced 2026-02-13 07:03:25 +00:00
added func
added rotation matrix for opengl updated unit tests
This commit is contained in:
@@ -10,7 +10,13 @@
|
||||
TEST(UnitTestOpenGL, ForwardVector)
|
||||
{
|
||||
const auto forward = omath::opengl_engine::ForwardVector({});
|
||||
omath::opengl_engine::ViewAngles angles = {};
|
||||
angles.pitch = omath::opengl_engine::PitchAngle::FromDegrees(90);
|
||||
|
||||
std::print("{}\n", angles.pitch.AsDegrees());
|
||||
const auto forward2 = omath::opengl_engine::ForwardVector(angles);
|
||||
|
||||
std::println("{} {} {}", forward2.x, (int)forward2.y, forward2.z);
|
||||
EXPECT_EQ(forward, omath::opengl_engine::kAbsForward);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user