2026-03-07 12:09:00 +01:00
|
|
|
#include <cassert>
|
2026-02-11 02:52:03 +01:00
|
|
|
import Crafter.Math;
|
|
|
|
|
import std;
|
|
|
|
|
|
|
|
|
|
using namespace Crafter;
|
|
|
|
|
|
|
|
|
|
int main() {
|
2026-03-07 20:38:51 +01:00
|
|
|
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;
|
2026-02-11 02:52:03 +01:00
|
|
|
}
|