OpenCOVER
Public Member Functions | Protected Attributes | List of all members
opencover::coPlane Class Reference

#include <coPlane.h>

Inheritance diagram for opencover::coPlane:
Inheritance graph
[legend]

Public Member Functions

 coPlane (osg::Vec3 normal, osg::Vec3 point)
 
virtual ~coPlane ()
 
virtual void update (osg::Vec3 normal, osg::Vec3 point)
 
osg::Vec3 & getPosition ()
 
osg::Vec3 & getNormal ()
 
float getPointDistance (osg::Vec3 &point)
 
osg::Vec3 getProjectedPoint (osg::Vec3 &point)
 
bool getLineIntersectionPoint (const osg::Vec3 &lp1, const osg::Vec3 &lp2, osg::Vec3 &isectPoint) const
 
bool getLineSegmentIntersectionPoint (osg::Vec3 &lp1, osg::Vec3 &lp2, osg::Vec3 &isectPoint)
 
int getBoxIntersectionPoints (osg::BoundingBox &box, osg::Vec3 *isectPoints)
 

Protected Attributes

osg::Vec3 _normal
 
osg::Vec3 _point
 
float _d
 

Constructor & Destructor Documentation

◆ coPlane()

opencover::coPlane::coPlane ( osg::Vec3  normal,
osg::Vec3  point 
)

◆ ~coPlane()

virtual opencover::coPlane::~coPlane ( )
virtual

Member Function Documentation

◆ getBoxIntersectionPoints()

int opencover::coPlane::getBoxIntersectionPoints ( osg::BoundingBox &  box,
osg::Vec3 *  isectPoints 
)

◆ getLineIntersectionPoint()

bool opencover::coPlane::getLineIntersectionPoint ( const osg::Vec3 &  lp1,
const osg::Vec3 &  lp2,
osg::Vec3 &  isectPoint 
) const

◆ getLineSegmentIntersectionPoint()

bool opencover::coPlane::getLineSegmentIntersectionPoint ( osg::Vec3 &  lp1,
osg::Vec3 &  lp2,
osg::Vec3 &  isectPoint 
)

◆ getNormal()

osg::Vec3 & opencover::coPlane::getNormal ( )
inline

◆ getPointDistance()

float opencover::coPlane::getPointDistance ( osg::Vec3 &  point)

◆ getPosition()

osg::Vec3 & opencover::coPlane::getPosition ( )
inline

◆ getProjectedPoint()

osg::Vec3 opencover::coPlane::getProjectedPoint ( osg::Vec3 &  point)

◆ update()

virtual void opencover::coPlane::update ( osg::Vec3  normal,
osg::Vec3  point 
)
virtual

Member Data Documentation

◆ _d

float opencover::coPlane::_d
protected

◆ _normal

osg::Vec3 opencover::coPlane::_normal
protected

◆ _point

osg::Vec3 opencover::coPlane::_point
protected

The documentation for this class was generated from the following file: