2 #ifndef vgl_lineseg_test_h_ 3 #define vgl_lineseg_test_h_ 20 # include <vcl_msvc_warnings.h> 73 #define VGL_LINESEG_TEST_INSTANTIATE(T) extern "please include vgl/vgl_lineseg_test.hxx instead" 75 #endif // vgl_lineseg_test_h_ bool vgl_lineseg_test_line(vgl_line_2d< T > const &l1, vgl_line_segment_2d< T > const &l2)
true if the line meets the linesegment.
a point in 2D nonhomogeneous space
vgl_point_2d< Type > point2() const
The other end-point of the line segment.
bool vgl_lineseg_test_lineseg(vgl_line_segment_2d< T > const &l1, vgl_line_segment_2d< T > const &l2)
return true if the two linesegments meet.
void get_two_points(vgl_point_2d< Type > &p1, vgl_point_2d< Type > &p2) const
Get two points on the line; normally the intersection with X and Y axes.
vgl_point_2d< Type > point1() const
One end-point of the line segment.
bool vgl_lineseg_test_point(vgl_point_2d< T > const &p, vgl_line_segment_2d< T > const &lseg)
true if the point lies on the line segment and is between the endpoints.