Files Classes Functions Hierarchy
#include <d2linesegment.h>
Public Member Functions | |
| bool const | intersects (d2linesegment const &s2) const |
| Do the two line segments intersect? | |
| void | rotate (double const theta) |
| Anticlockwise rotation of the simplex about its center. | |
| void | translate (pt2c &x) |
| Shift the simplex. | |
Public Attributes | |
| point2< double > | v [2] |
| Points defining the line segment. | |
Definition at line 7 of file d2linesegment.h.
| bool const d2linesegment::intersects | ( | d2linesegment const & | s2 | ) | const |
Do the two line segments intersect?
Definition at line 19 of file d2linesegment.cpp.
References lineSegmentIntersection(), and v.
00020 { 00021 return lineSegmentIntersection(v[0],v[1],s2.v[0],v2.v[1],1E-5); 00022 }
| void d2linesegment::rotate | ( | double const | theta | ) |
| void d2linesegment::translate | ( | pt2c & | x | ) |
| point2<double> d2linesegment::v[2] |
Points defining the line segment.
Definition at line 12 of file d2linesegment.h.
Referenced by intersects(), rotate(), and translate().
1.5.8