#include <GLViewer_Geom.h>
Public Member Functions | |
GLViewer_Segment (const GLViewer_Pnt &thePnt1, const GLViewer_Pnt &thePnt2) | |
GLViewer_Segment (const GLViewer_Pnt &thePnt, const GLfloat theA, const GLfloat theB, const GLfloat theC) | |
Ordinary segment construction. More... | |
~GLViewer_Segment () | |
bool | HasIntersection (const GLViewer_Segment &theOther) const |
Private Attributes | |
GLViewer_Pnt | myPnt1 |
GLViewer_Pnt | myPnt2 |
GLfloat | myA |
GLfloat | myB |
GLfloat | myC |
Class GLViewer_Segment Segment for 2d detection
GLViewer_Segment::GLViewer_Segment | ( | const GLViewer_Pnt & | thePnt1, |
const GLViewer_Pnt & | thePnt2 | ||
) |
constructs a real segment bounded by two points
References myA, myB, myC, myPnt1, myPnt2, GLViewer_Pnt::x(), and GLViewer_Pnt::y().
GLViewer_Segment::GLViewer_Segment | ( | const GLViewer_Pnt & | thePnt, |
const GLfloat | theA, | ||
const GLfloat | theB, | ||
const GLfloat | theC | ||
) |
GLViewer_Segment::~GLViewer_Segment | ( | ) |
destructor, does nothing
bool GLViewer_Segment::HasIntersection | ( | const GLViewer_Segment & | theOther | ) | const |
detects intersection with segment <theOther>
References myA, myB, myC, myPnt1, myPnt2, TOLERANCE, GLViewer_Pnt::x(), and GLViewer_Pnt::y().
|
private |
|
private |
|
private |
|
private |
|
private |