rebranding moment

This commit is contained in:
2024-07-09 19:29:22 +03:00
parent 528b8a0ca9
commit 13e7adc8f6
24 changed files with 105 additions and 70 deletions

View File

@@ -6,4 +6,4 @@ file(GLOB TEST_SRC_FILES ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
include(GoogleTest)
add_executable(unit-tests UnitTestColor.cpp UnitTestMatrix.cpp)
target_link_libraries(unit-tests PRIVATE gtest gtest_main uml)
target_link_libraries(unit-tests PRIVATE gtest gtest_main omath)

View File

@@ -1,11 +1,11 @@
#include <gtest/gtest.h>
#include <uml/prediction/Engine.h>
#include <omath/prediction/Engine.h>
TEST(x,x)
{
uml::prediction::Target target{.m_origin = {100, 0, 60}, .m_velocity = {0, 0, 0}, .m_isAirborne = false};
uml::prediction::Projectile proj = {.m_origin = {3,2,1}, .m_launchSpeed = 5000, .m_gravityScale= 0.4};
auto vel = uml::prediction::Engine(400, 1.f / 1000.f, 50, 5.f).MaybeCalculateAimPoint(proj, target);
omath::prediction::Target target{.m_origin = {100, 0, 60}, .m_velocity = {0, 0, 0}, .m_isAirborne = false};
omath::prediction::Projectile proj = {.m_origin = {3,2,1}, .m_launchSpeed = 5000, .m_gravityScale= 0.4};
auto vel = omath::prediction::Engine(400, 1.f / 1000.f, 50, 5.f).MaybeCalculateAimPoint(proj, target);
auto pitch = proj.m_origin.ViewAngleTo(vel.value()).x;

View File

@@ -2,13 +2,13 @@
// Created by vlad on 5/18/2024.
//
#include <gtest/gtest.h>
#include <uml/matrix.h>
#include <omath/matrix.h>
#include <print>
TEST(UnitTestMatrix, ToString)
{
uml::matrix matrix(2, 2);
omath::matrix matrix(2, 2);
matrix.set(1.1);
const auto str = matrix.to_string();