ray sphere test

This commit is contained in:
Jorijn van der Graaf 2026-02-11 04:28:54 +01:00
commit 2daa51680a
3 changed files with 29 additions and 7 deletions

View file

@ -4,10 +4,5 @@ import std;
using namespace Crafter;
int main() {
Vector<float, 3, 0> test(1,2,3);
Vector<float, 3, 0> test2(1,2,3);
Vector<float, 3, 0> test3(1,2,3);
Vector<float, 3, 0> test4(1,2,3);
Vector<float, 3, 0> test5(1,2,3);
std::cout << IntersectionTestRayTriangle(test, test2, test3, test4, test5) << std::endl;
std::cout << IntersectionTestRaySphere<float>({0,0,0}, 10, {0,0,-100}, {0,1,0}) << std::endl;
}