Make math independent from engine.

This commit is contained in:
scorpioblood
2024-05-20 22:00:08 +02:00
parent e0f6cf1fa0
commit 122fba35db
18 changed files with 251 additions and 457 deletions

View File

@@ -1,11 +1,38 @@
#include "Core/public/Math/MathPCH.h"
#include <iostream>
#include <chrono>
namespace PMath = Phanes::Core::Math;
int main()
{
int x = 13;
x %= 7;
std::cout << x;
PMath::TMatrix2<float> m1(7.3f,4.3f,
9.4f,2.5f);
for (int i = 0; i < 10; i++)
{
auto start = std::chrono::high_resolution_clock::now();
for (size_t i = 0; i < 999999; i++)
{
}
auto end = std::chrono::high_resolution_clock::now();
std::cout << std::chrono::duration_cast<std::chrono::nanoseconds>(end - start).count() << std::endl;
}
return 0;
}