sphere box test
This commit is contained in:
parent
b1f9f44bbe
commit
1f70062750
1 changed files with 1 additions and 1 deletions
|
|
@ -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<T, 3, 0> boxAxis(boxMat.m[0][i], boxMat.m[1][i], boxMat.m[2][i]);
|
||||
Vector<T, 3, 0> sphereAxis = Vector<T, 3, 0>::Zero();
|
||||
Vector<T, 3, 0> sphereAxis = Vector<T, 3, 0>(0,0,0);
|
||||
sphereAxis.v[j] = T(1);
|
||||
Vector<T, 3, 0> axis = Vector<T, 3, 0>::Cross(boxAxis, sphereAxis);
|
||||
T dist = Vector<T, 3, 0>::Dot(d, axis);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue