Defines | Functions
core/vgl/vgl_plane_3d.txx File Reference
#include "vgl_plane_3d.h"
#include <vgl/vgl_homg_plane_3d.h>
#include <vgl/vgl_point_3d.h>
#include <vgl/vgl_point_2d.h>
#include <vgl/vgl_closest_point.h>
#include <vgl/vgl_distance.h>
#include <vcl_cmath.h>
#include <vcl_cassert.h>
#include <vcl_iostream.h>

Go to the source code of this file.

Defines

#define vgl_plane_3d_txx_
#define vp(os, v, s)
#define VGL_PLANE_3D_INSTANTIATE(T)

Functions

template<class T >
vcl_ostream & operator<< (vcl_ostream &os, const vgl_plane_3d< T > &p)
 Write to stream.
template<class T >
vcl_istream & operator>> (vcl_istream &is, vgl_plane_3d< T > &p)
 Read in four plane parameters from stream.

Detailed Description

Definition in file vgl_plane_3d.txx.


Define Documentation

#define VGL_PLANE_3D_INSTANTIATE (   T)
Value:
template class vgl_plane_3d<T >; \
template vcl_ostream& operator<<(vcl_ostream&, vgl_plane_3d<T >const&); \
template vcl_istream& operator>>(vcl_istream&, vgl_plane_3d<T >&)

Definition at line 190 of file vgl_plane_3d.txx.

#define vgl_plane_3d_txx_

Definition at line 3 of file vgl_plane_3d.txx.

#define vp (   os,
  v,
 
)
Value:
{ os<<' '; if ((v)>0) os<<'+'; if ((v)&&!s[0]) os<<(v); else { \
                     if ((v)==-1) os<<'-';\
                     else if ((v)!=0&&(v)!=1) os<<(v);\
                     if ((v)!=0) os<<' '<<s; } }

Definition at line 75 of file vgl_plane_3d.txx.


Function Documentation

template<class T >
vcl_ostream& operator<< ( vcl_ostream &  os,
const vgl_plane_3d< T > &  p 
)

Write to stream.

Definition at line 81 of file vgl_plane_3d.txx.

template<class T >
vcl_istream& operator>> ( vcl_istream &  is,
vgl_plane_3d< T > &  p 
)

Read in four plane parameters from stream.

Either just reads four blank-separated numbers, or reads four comma-separated numbers, or reads four numbers in parenthesized form "(123, 321, -456, 777)" or reads a formatted line equation "123x+321y-456z+777=0"

Definition at line 90 of file vgl_plane_3d.txx.