A couple of API additions to osg::ClippingVolume, osg::Matrix and osg::Plane

sent in by Mike Connell.
This commit is contained in:
Robert Osfield
2002-04-22 21:18:15 +00:00
parent dcfef4a023
commit 43abbe311e
3 changed files with 33 additions and 4 deletions

View File

@@ -78,7 +78,9 @@ class SG_EXPORT Plane
inline float operator [] (const int i) const { return _fv[i]; }
/** calculate the distance between a point and the plane.*/
inline osg::Vec3 getNormal() { return osg::Vec3(_fv[0],_fv[1],_fv[2]); }
/** calculate the distance between a point and the plane.*/
inline const float distance(const osg::Vec3& v) const
{
return _fv[0]*v.x()+