Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members

vgl_intersection.txx File Reference


Detailed Description

Author:
Gamze Tunali

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.


Define Documentation

#define VGL_INTERSECTION_BOX_INSTANTIATE  )     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.

Definition at line 306 of file vgl_intersection.txx.

#define VGL_INTERSECTION_INSTANTIATE  ) 
 

Value:

Definition at line 297 of file vgl_intersection.txx.


Function Documentation

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
[related]
 

Return the intersection point of two concurrent lines.

Definition at line 210 of file vgl_intersection.txx.

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.

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.

bool vgl_near_eq double  x,
double  y
[inline]
 

Definition at line 23 of file vgl_intersection.txx.

bool vgl_near_zero double  x  )  [inline]
 

Definition at line 22 of file vgl_intersection.txx.


Generated on Thu Jan 10 14:39:24 2008 for core/vgl by  doxygen 1.4.4