#include <vgl/vgl_line_segment_2d.h>
#include <vgl/vgl_line_2d.h>
#include <vgl/vgl_point_2d.h>
#include <vcl_cmath.h>
Go to the source code of this file.
Defines | |
#define | VGL_LINESEG_TEST_INSTANTIATE(T) extern "please include vgl/vgl_lineseg_test.txx instead" |
Functions | |
template<class T > | |
export bool | vgl_lineseg_test_line (T x1, T y1, T x2, T y2, T x3, T y3, T x4, T y4) |
true if the line joining [1], [2] meets the linesegment joining [3], [4]. | |
template<class T > | |
export bool | vgl_lineseg_test_lineseg (T x1, T y1, T x2, T y2, T x3, T y3, T x4, T y4) |
true if the linesegment joining [1], [2] meets the linesegment joining [3], [4]. | |
template<class T > | |
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. | |
template<class T > | |
export 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. | |
template<class T > | |
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. |
Definition in file vgl_lineseg_test.h.
#define VGL_LINESEG_TEST_INSTANTIATE | ( | T | ) | extern "please include vgl/vgl_lineseg_test.txx instead" |
Definition at line 70 of file vgl_lineseg_test.h.
export bool vgl_lineseg_test_line | ( | T | x1, |
T | y1, | ||
T | x2, | ||
T | y2, | ||
T | x3, | ||
T | y3, | ||
T | x4, | ||
T | y4 | ||
) |
true if the line joining [1], [2] meets the linesegment joining [3], [4].
End points are considered to belong to a line segment.
Definition at line 14 of file vgl_lineseg_test.txx.
bool vgl_lineseg_test_line | ( | vgl_line_2d< T > const & | l1, |
vgl_line_segment_2d< T > const & | l2 | ||
) | [inline] |
true if the line meets the linesegment.
End points are considered to belong to a line segment.
Definition at line 39 of file vgl_lineseg_test.h.
export bool vgl_lineseg_test_lineseg | ( | T | x1, |
T | y1, | ||
T | x2, | ||
T | y2, | ||
T | x3, | ||
T | y3, | ||
T | x4, | ||
T | y4 | ||
) |
true if the linesegment joining [1], [2] meets the linesegment joining [3], [4].
End points are considered to belong to a line segment.
Definition at line 33 of file vgl_lineseg_test.txx.
bool vgl_lineseg_test_lineseg | ( | vgl_line_segment_2d< T > const & | l1, |
vgl_line_segment_2d< T > const & | l2 | ||
) | [inline] |
return true if the two linesegments meet.
End points are considered to belong to a line segment.
Definition at line 61 of file vgl_lineseg_test.h.
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.
Definition at line 88 of file vgl_lineseg_test.txx.