Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-04-09 07:48:52

0001 // ./csg_intersect_leaf_templated_test.sh
0002 
0003 #include <cstdio>
0004 #include "scuda.h"
0005 #include "squad.h"
0006 #include "scuda_double.h"
0007 #include "scuda_templated.h"
0008 
0009 #include "csg_intersect_leaf_templated.h"
0010 
0011 
0012 template<typename F>
0013 void test_distance_leaf_sphere()
0014 {
0015     F3 pos = {0.f, 0.f, 0.f} ;  
0016 
0017     Q4 q ;  
0018     q.f = {0.f, 0.f, 0.f, 100.f } ; 
0019 
0020     F t = distance_leaf_sphere<F>( pos, q ); 
0021 
0022     printf("//test_distance_leaf_sphere t %7.4f \n", t ); 
0023 }
0024 
0025 
0026 int main()
0027 {
0028     test_distance_leaf_sphere<float>(); 
0029     test_distance_leaf_sphere<double>(); 
0030 
0031     return 0 ; 
0032 
0033 }