13 lines
No EOL
424 B
C++
13 lines
No EOL
424 B
C++
#include <cassert>
|
|
import Crafter.Math;
|
|
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;
|
|
} |