mirror of
https://github.com/orange-cpp/omath.git
synced 2026-02-13 07:03:25 +00:00
Improves test accuracy and adds .gitignore entry
Updates unit tests to include more accurate assertions for camera projections. Adds .idea/workspace.xml to .gitignore to prevent tracking local IDE settings. Refactors some test fixture class names for consistency.
This commit is contained in:
@@ -88,7 +88,9 @@ TEST(unit_test_unity_engine, Project)
|
||||
|
||||
const auto cam = omath::unity_engine::Camera({0, 0, 0}, {}, {1280.f, 720.f}, fov, 0.03f, 1000.f);
|
||||
const auto proj = cam.world_to_screen({5.f, 3, 10.f});
|
||||
std::println("{} {}", proj->x, proj->y);
|
||||
|
||||
EXPECT_NEAR(proj->x, 951.769f, 0.001f);
|
||||
EXPECT_NEAR(proj->y, 547.061f, 0.001f);
|
||||
}
|
||||
|
||||
TEST(unit_test_unity_engine, CameraSetAndGetFov)
|
||||
|
||||
Reference in New Issue
Block a user