sphere box test

This commit is contained in:
Jorijn van der Graaf 2026-03-07 20:38:51 +01:00
commit 277f88c00c
2 changed files with 8 additions and 4 deletions

View file

@ -5,5 +5,9 @@ import std;
using namespace Crafter;
int main() {
Vector<float, 3, 0> sphereCenter(-10,0,0);
float sphereRadius = 10;
Vector<float, 3, 0> boxSize(0,0,0);
MatrixRowMajor<float, 4, 3, 1> boxMatrix = MatrixRowMajor<float, 4, 3, 1> ::Translation(10,0,0);
std::cout << IntersectionTestSphereOrientedBox(sphereCenter, sphereRadius, boxSize, boxMatrix) << std::endl;
}