Macros | Functions
vgl_homg_line_2d.hxx File Reference
#include <cmath>
#include <iostream>
#include "vgl_homg_line_2d.h"
#include <cassert>
#include <vgl/vgl_homg_point_2d.h>
#include <vgl/vgl_line_2d.h>

Go to the source code of this file.

Macros

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

Functions

template<class Type >
std::ostream & operator<< (std::ostream &os, vgl_homg_line_2d< Type >const &l)
 Print line equation to stream. More...
 
template<class Type >
std::istream & operator>> (std::istream &is, vgl_homg_line_2d< Type > &p)
 Load in line parameters from stream. More...
 

Macro Definition Documentation

◆ VGL_HOMG_LINE_2D_INSTANTIATE

#define VGL_HOMG_LINE_2D_INSTANTIATE (   T)
Value:
template class vgl_homg_line_2d<T >; \
template std::ostream& operator<<(std::ostream&, vgl_homg_line_2d<T >const&); \
template std::istream& operator>>(std::istream&, vgl_homg_line_2d<T >&)
Represents a homogeneous 2D line.
Definition: vgl_fwd.h:14
std::ostream & operator<<(std::ostream &s, vgl_orient_box_3d< Type > const &p)
Write box to stream.
std::istream & operator>>(std::istream &is, vgl_orient_box_3d< Type > &p)
Read box from stream.

Definition at line 121 of file vgl_homg_line_2d.hxx.

◆ vp

#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); } }
#define v
Definition: vgl_vector_2d.h:74

Definition at line 52 of file vgl_homg_line_2d.hxx.

Function Documentation

◆ operator<<()

template<class Type >
std::ostream& operator<< ( std::ostream &  os,
vgl_homg_line_2d< Type >const &  l 
)

Print line equation to stream.

Definition at line 60 of file vgl_homg_line_2d.hxx.

◆ operator>>()

template<class Type >
std::istream& operator>> ( std::istream &  is,
vgl_homg_line_2d< Type > &  p 
)

Load in line parameters from stream.

Definition at line 70 of file vgl_homg_line_2d.hxx.