Defines | Functions
core/vgl/vgl_homg_line_2d.txx File Reference
#include "vgl_homg_line_2d.h"
#include <vcl_cmath.h>
#include <vcl_cassert.h>
#include <vcl_iostream.h>
#include <vgl/vgl_homg_point_2d.h>
#include <vgl/vgl_line_2d.h>

Go to the source code of this file.

Defines

#define vgl_homg_line_2d_txx_
#define vp(os, v, s)
#define VGL_HOMG_LINE_2D_INSTANTIATE(T)

Functions

template<class Type >
vcl_ostream & operator<< (vcl_ostream &os, vgl_homg_line_2d< Type >const &l)
 Print line equation to stream.
template<class Type >
vcl_istream & operator>> (vcl_istream &is, vgl_homg_line_2d< Type > &p)
 Load in line parameters from stream.

Detailed Description

Definition in file vgl_homg_line_2d.txx.


Define Documentation

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

Definition at line 118 of file vgl_homg_line_2d.txx.

#define vgl_homg_line_2d_txx_

Definition at line 3 of file vgl_homg_line_2d.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 49 of file vgl_homg_line_2d.txx.


Function Documentation

template<class Type >
vcl_ostream& operator<< ( vcl_ostream &  os,
vgl_homg_line_2d< Type >const &  l 
)

Print line equation to stream.

Definition at line 57 of file vgl_homg_line_2d.txx.

template<class Type >
vcl_istream& operator>> ( vcl_istream &  is,
vgl_homg_line_2d< Type > &  p 
)

Load in line parameters from stream.

Definition at line 67 of file vgl_homg_line_2d.txx.