Porting to linux

This commit is contained in:
Thorben Höhne
2025-02-19 19:30:16 +01:00
parent 0da9755ae6
commit d00448a422
40 changed files with 416 additions and 216 deletions

View File

@@ -46,6 +46,7 @@ namespace Phanes::Core::Math::Detail
{
static constexpr bool map(Phanes::Core::Math::TMatrix4<T, false>& r, const Phanes::Core::Math::TMatrix4<T, false>& m)
{
const TVector3<T, false>& a = reinterpret_cast<const TVector3<T, false>&>(m[0]);
const TVector3<T, false>& b = reinterpret_cast<const TVector3<T, false>&>(m[1]);
const TVector3<T, false>& c = reinterpret_cast<const TVector3<T, false>&>(m[2]);

View File

@@ -1,6 +1,7 @@
#pragma once
#include "Core/Math/Boilerplate.h"
#include "Core/Math/MathCommon.hpp"
namespace Phanes::Core::Math::Detail
{
@@ -259,7 +260,7 @@ namespace Phanes::Core::Math::Detail
{
static constexpr T map(const Phanes::Core::Math::TVector3<T, false>& v1)
{
return sqrt(v1.x * v1.x + v1.y * v1.y + v1.z * v1.z);
return Phanes::Core::Math::Sqrt(v1.x * v1.x + v1.y * v1.y + v1.z * v1.z);
}
};