#include <GLViewer_Geom.h>
Class GLViewer_Segment Segment for 2d detection
◆ GLViewer_Segment() [1/2]
◆ GLViewer_Segment() [2/2]
| GLViewer_Segment::GLViewer_Segment |
( |
const GLViewer_Pnt & |
thePnt, |
|
|
const GLfloat |
theA, |
|
|
const GLfloat |
theB, |
|
|
const GLfloat |
theC |
|
) |
| |
Ordinary segment construction.
Construction of a ray with given equation Ax + By + C = 0
constructs a ray starting at <thePnt> and directed along positive X axis direction (or Y axis if vertical )
References FAR_POINT, myA, myB, myC, myPnt1, myPnt2, TOLERANCE, and GLViewer_Pnt::x().
◆ ~GLViewer_Segment()
| GLViewer_Segment::~GLViewer_Segment |
( |
| ) |
|
◆ HasIntersection()
| bool GLViewer_Segment::HasIntersection |
( |
const GLViewer_Segment & |
theOther | ) |
const |
◆ myA
| GLfloat GLViewer_Segment::myA |
|
private |
◆ myB
| GLfloat GLViewer_Segment::myB |
|
private |
◆ myC
| GLfloat GLViewer_Segment::myC |
|
private |
◆ myPnt1
◆ myPnt2
The documentation for this class was generated from the following files: