| http://www.w3.org/ns/prov#value | - g.Consider functions to intersect geometrical objects, including spheres, triangles and rays:Code: [Select]// In C:if( intersect_ray_tri( ray, tri, &t )) { ...}if( intersect_ray_sphere( ray, sphere, &t )) { ...}// In C++ without OOP:if( intersect( ray, tri, &t )) { ...}if( intersect( ray, sphere, &t )) { ...}// In C++ with OOP:if( ray->intersect( sphere, &t )) { ...}if( ray->intersect( tri, &t ))
|