bool triangle<T,color_type>::intersects(const sphere<T,color_type>& s) const { // If any of the 3 corners is inside the sphere, the triangle intersects. if (s.inside( plane<T,color_type>::get_origin()) || s.inside( plane<T,color_type>::get_origin() + plane<T,color_type>::get_u_vector()) || s.inside( plane<T,color_type>::get_origin() + plane<T,color_type>::get_v_vector())) { return true; } return false; }