-template<typename T, unsigned D>
-inline bool HyperSphere<T, D>::check_intersection(const Ray<T, D> &ray) const
-{
- T x = inner_product(ray.get_direction(), ray.get_start());
- if(x>0)
- return contains(ray.get_start());
- else
- return contains(ray.get_start()-ray.get_direction()*x);
-}
-