Moved the code referencing osg::BoundingBox::isValid() and

osg::BoundingSphere::isValid() across to use the valid() methods, the later
being more consitent with other classes such as osg::ref_ptr<>.
This commit is contained in:
Robert Osfield
2002-07-11 14:32:21 +00:00
parent b015d80d68
commit c4c97a0f64
12 changed files with 19 additions and 24 deletions

View File

@@ -124,7 +124,7 @@ const bool LineSegment::intersectAndClip(Vec3& s,Vec3& e,const BoundingBox& bb)
const bool LineSegment::intersect(const BoundingBox& bb) const
{
if (!bb.isValid()) return false;
if (!bb.valid()) return false;
Vec3 s=_s,e=_e;
return intersectAndClip(s,e,bb);
@@ -133,7 +133,7 @@ const bool LineSegment::intersect(const BoundingBox& bb) const
const bool LineSegment::intersect(const BoundingBox& bb,float& r1,float& r2) const
{
if (!bb.isValid()) return false;
if (!bb.valid()) return false;
Vec3 s=_s,e=_e;
bool result = intersectAndClip(s,e,bb);