From 1f70062750a998d186221a4380b4c5a874a3eec5 Mon Sep 17 00:00:00 2001 From: Jorijn van der Graaf Date: Sat, 7 Mar 2026 20:21:08 +0100 Subject: [PATCH] sphere box test --- interfaces/Crafter.Math-Intersection.cppm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/interfaces/Crafter.Math-Intersection.cppm b/interfaces/Crafter.Math-Intersection.cppm index bf003bb..260526e 100755 --- a/interfaces/Crafter.Math-Intersection.cppm +++ b/interfaces/Crafter.Math-Intersection.cppm @@ -222,7 +222,7 @@ namespace Crafter { for (std::uint32_t i = 0; i < 3; ++i) { for (std::uint32_t j = 0; j < 3; ++j) { Vector boxAxis(boxMat.m[0][i], boxMat.m[1][i], boxMat.m[2][i]); - Vector sphereAxis = Vector::Zero(); + Vector sphereAxis = Vector(0,0,0); sphereAxis.v[j] = T(1); Vector axis = Vector::Cross(boxAxis, sphereAxis); T dist = Vector::Dot(d, axis);