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);