#include <cmath>#include "vgl_lineseg_test.h"#include <vgl/vgl_tolerance.h>#include <vgl/vgl_triangle_test.h>Go to the source code of this file.
Macros | |
| #define | VGL_LINESEG_TEST_INSTANTIATE(T) |
Functions | |
| template<class T > | |
| 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]. More... | |
| template<class T > | |
| 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]. More... | |
| template<class T > | |
| 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. More... | |
Definition in file vgl_lineseg_test.hxx.
| #define VGL_LINESEG_TEST_INSTANTIATE | ( | T | ) |
Definition at line 110 of file vgl_lineseg_test.hxx.
| 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 17 of file vgl_lineseg_test.hxx.
| 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 36 of file vgl_lineseg_test.hxx.
| 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 91 of file vgl_lineseg_test.hxx.
1.8.15