+ /// Return true if this is inside sphere
+ bool inside(const SGSphere<T>& sphere) const
+ {
+ if (empty())
+ return false;
+ if (sphere.empty())
+ return false;
+
+ T dist = sphere.getRadius() - getRadius();
+ return distSqr(getCenter(), sphere.getCenter()) <= dist*dist;
+ }
+