Macros | Functions
vgl_box_2d.hxx File Reference
#include <iostream>
#include <algorithm>
#include <cmath>
#include "vgl_box_2d.h"
#include <cassert>
#include <vgl/vgl_point_2d.h>

Go to the source code of this file.

Macros

#define VGL_BOX_2D_INSTANTIATE(Type)
 

Functions

template<class T >
void set_dim_2d (T &minv, T &maxv, T spread)
 
template<>
void set_dim_2d (int &minv, int &maxv, int spread)
 
template<class Type >
std::ostream & operator<< (std::ostream &s, vgl_box_2d< Type > const &p)
 Print to stream. More...
 
template<class Type >
std::istream & operator>> (std::istream &is, vgl_box_2d< Type > &p)
 Read from stream. More...
 

Macro Definition Documentation

◆ VGL_BOX_2D_INSTANTIATE

#define VGL_BOX_2D_INSTANTIATE (   Type)
Value:
template class vgl_box_2d<Type >;\
template std::istream& operator>>(std::istream&, vgl_box_2d<Type >&);\
template std::ostream& operator<<(std::ostream&, vgl_box_2d<Type > const&)
std::ostream & operator<<(std::ostream &s, vgl_orient_box_3d< Type > const &p)
Write box to stream.
Represents a cartesian 2D box.
Definition: vgl_area.h:8
std::istream & operator>>(std::istream &is, vgl_orient_box_3d< Type > &p)
Read box from stream.

Definition at line 384 of file vgl_box_2d.hxx.

Function Documentation

◆ operator<<()

template<class Type >
std::ostream& operator<< ( std::ostream &  s,
vgl_box_2d< Type > const &  p 
)

Print to stream.

Write box to stream.

Definition at line 371 of file vgl_box_2d.hxx.

◆ operator>>()

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

Read from stream.

Read box from stream.

Definition at line 378 of file vgl_box_2d.hxx.

◆ set_dim_2d() [1/2]

template<class T >
void set_dim_2d ( T &  minv,
T &  maxv,
spread 
)
inline

Definition at line 192 of file vgl_box_2d.hxx.

◆ set_dim_2d() [2/2]

template<>
void set_dim_2d ( int &  minv,
int &  maxv,
int  spread 
)
inline

Definition at line 183 of file vgl_box_2d.hxx.