From d86695fad7f69d47d08e9ba6904bf818218c33ef Mon Sep 17 00:00:00 2001 From: Orange Date: Tue, 21 Oct 2025 04:29:16 +0300 Subject: [PATCH] nuked not needed test --- tests/engines/unit_test_unity_engine.cpp | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/tests/engines/unit_test_unity_engine.cpp b/tests/engines/unit_test_unity_engine.cpp index 7332c80..46735cc 100644 --- a/tests/engines/unit_test_unity_engine.cpp +++ b/tests/engines/unit_test_unity_engine.cpp @@ -233,19 +233,4 @@ TEST(unit_test_unity_engine, loook_at_random_z_axis) failed_points++; } EXPECT_LE(failed_points, 100); -} - -TEST(unit_test_unity_engine, to_camera_coordiante_syste) -{ - omath::Vector3 point = {10, 3, 10}; - auto result = omath::unity_engine::calc_view_matrix({}, {}) * omath::mat_column_from_vector(point); - auto perspective = omath::unity_engine::calc_perspective_projection_matrix(60, 1280 / 720.f, 0.3, 1000); - - constexpr auto fov = omath::projection::FieldOfView::from_degrees(60.f); - - const auto cam = omath::unity_engine::Camera({0, 0, 0}, {}, {1280.f, 720.f}, fov, 0.03f, 1000.f); - - std::println("View matrix: \n{}", cam.get_view_matrix()); - std::println("Projection: \n{}", cam.get_projection_matrix()); - std::print("NDC: projection {} -> {}", point, cam.world_to_screen(point).value()); } \ No newline at end of file