Definition in file vgl_intersection.txx.
#include "vgl_intersection.h"
#include <vcl_limits.h>
#include <vcl_cassert.h>
#include <vgl/vgl_point_2d.h>
#include <vgl/vgl_line_2d.h>
#include <vgl/vgl_line_3d_2_points.h>
#include <vgl/vgl_line_segment_3d.h>
#include <vgl/vgl_vector_3d.h>
#include <vgl/vgl_box_2d.h>
#include <vgl/vgl_plane_3d.h>
#include <vgl/vgl_distance.h>
Go to the source code of this file.
Defines | |
| #define | VGL_INTERSECTION_INSTANTIATE(T) |
| #define | VGL_INTERSECTION_BOX_INSTANTIATE(T) template bool vgl_intersection(const vgl_box_2d<T >&, const vgl_line_2d<T >& line, vgl_point_2d<T >& p0, vgl_point_2d<T >&) |
| Instantiate only functions suitable for integer instantiation. | |
Functions | |
| bool | vgl_near_zero (double x) |
| bool | vgl_near_eq (double x, double y) |
| template<class Type> | |
| bool | vgl_intersection (const vgl_box_2d< Type > &box, const vgl_line_2d< Type > &line, vgl_point_2d< Type > &p0, vgl_point_2d< Type > &p1) |
| Return true if line intersects box. If so, compute intersection points. | |
| template<class T> | |
| vgl_point_3d< T > | vgl_intersection (vgl_line_3d_2_points< T > const &l1, vgl_line_3d_2_points< T > const &l2) |
| Return the intersection point of two concurrent lines. | |
|
|
Instantiate only functions suitable for integer instantiation.
Definition at line 306 of file vgl_intersection.txx. |
|
|
Value: template vgl_point_3d<T > vgl_intersection(vgl_line_3d_2_points<T > const&,vgl_line_3d_2_points<T > const&);\ template bool vgl_intersection(vgl_line_segment_3d<T > const&,vgl_line_segment_3d<T > const&,vgl_point_3d<T >&);\ template vgl_point_3d<T > vgl_intersection(vgl_line_3d_2_points<T > const&,vgl_plane_3d<T > const&);\ template vgl_point_3d<T > vgl_intersection(const vgl_plane_3d<T >&,const vgl_plane_3d<T >&,const vgl_plane_3d<T >&);\ template bool vgl_intersection(const vgl_box_2d<T >&, const vgl_line_2d<T >& line, vgl_point_2d<T >& p0, vgl_point_2d<T >&) Definition at line 297 of file vgl_intersection.txx. |
|
||||||||||||||||
|
Return the intersection point of two concurrent lines.
Definition at line 210 of file vgl_intersection.txx. |
|
||||||||||||||||||||||||
|
Return true if line intersects box. If so, compute intersection points. p0 and p1 are the intersection points There are six possible intersection combinations:. C01 / CY \ C11
/ | \ .
ymax -----/------|--------\-----
| / | \ |
| / | \ |
| / | \ | \ .
| / | \ | \_ Bounding Box
|/ | \|
/ | \ .
/| | |\ .
---------------------------------- CX
\ | | /
\| | /|
\ | / |
|\ | / |
| \ | / |
| \ | / |
xmin ---\--------|--------/----- xmax
ymin \ | /
C00 \ / C10
Definition at line 28 of file vgl_intersection.txx. |
|
||||||||||||
|
Definition at line 23 of file vgl_intersection.txx. |
|
|
Definition at line 22 of file vgl_intersection.txx. |
1.4.4