From 84c4a833b2a2a48bf92bfbe294d6ec3f7b8a028d Mon Sep 17 00:00:00 2001 From: MicroBlock <66859419+std-microblock@users.noreply.github.com> Date: Tue, 14 Oct 2025 19:19:53 +0800 Subject: [PATCH] Add cmath include to Matrix4x4.hpp is not included in in some of the STL implementations: https://github.com/xmake-io/xmake-repo/actions/runs/18494718294/job/52696175171?pr=8374 --- include/BNM/UnityStructures/Matrix4x4.hpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/BNM/UnityStructures/Matrix4x4.hpp b/include/BNM/UnityStructures/Matrix4x4.hpp index 3582db9..6755e05 100644 --- a/include/BNM/UnityStructures/Matrix4x4.hpp +++ b/include/BNM/UnityStructures/Matrix4x4.hpp @@ -5,6 +5,8 @@ #include "Vector4.hpp" #include "Matrix3x3.hpp" +#include + #define MAT(m, r, c) (m)[(c)*4+(r)] #define RETURN_ZERO do { for (int i=0;i<16;i++) out[i] = 0.0F; return false; } while(0) @@ -839,4 +841,4 @@ namespace BNM::Structures::Unity { inline void TransformPoints3x4(const Matrix4x4& matrix, const Vector3* in, size_t inStride, Vector3* out, size_t outStride, int count) { for (int i = 0; i < count; ++i, in = Stride(in, inStride), out = Stride(out, outStride)) *out = matrix.MultiplyPoint3x4(*in); } -} \ No newline at end of file +}