ray sphere test
This commit is contained in:
parent
4a254a3a66
commit
2daa51680a
3 changed files with 29 additions and 7 deletions
|
|
@ -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;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue