Classes | Macros | Functions
vgl_plane_3d.h File Reference

a plane in 3D nonhomogeneous space More...

#include <iosfwd>
#include <cassert>
#include <vgl/vgl_fwd.h>
#include <vgl/vgl_vector_3d.h>

Go to the source code of this file.

Classes

class  vgl_plane_3d< T >
 Represents a Euclidean 3D plane. More...
 

Macros

#define VGL_PLANE_3D_INSTANTIATE(T)   extern "please include vgl/vgl_plane_3d.hxx first"
 

Functions

template<class T >
bool is_ideal (vgl_plane_3d< T > const &, T tol=(T) 0)
 Return true iff p is the plane at infinity. More...
 
template<class T >
std::ostream & operator<< (std::ostream &s, const vgl_plane_3d< T > &p)
 Write to stream. More...
 
template<class T >
std::istream & operator>> (std::istream &is, vgl_plane_3d< T > &p)
 Read in four plane parameters from stream. More...
 

Detailed Description

a plane in 3D nonhomogeneous space

Author
Don Hamilton, Peter Tu
Date
Feb 15 2000
  Modifications
   Peter Vanroose  6 July 2001: Added assertion in constructors
   Peter Vanroose  6 July 2001: Now using vgl_vector_3d for normal direction
   Peter Vanroose  6 July 2001: Implemented constructor from 3 points
   Peter Vanroose  6 July 2001: Added normal(); replaced data_[4] by a_ b_ c_ d_
   Peter Vanroose  6 July 2001: Added operator== and operator!=
   Peter Vanroose 19 Aug. 2004: implementation of both constructors corrected
   Peter Vanroose 21 May  2009: istream operator>> re-implemented

Definition in file vgl_plane_3d.h.

Macro Definition Documentation

◆ VGL_PLANE_3D_INSTANTIATE

#define VGL_PLANE_3D_INSTANTIATE (   T)    extern "please include vgl/vgl_plane_3d.hxx first"

Definition at line 165 of file vgl_plane_3d.h.

Function Documentation

◆ is_ideal()

template<class T >
bool is_ideal ( vgl_plane_3d< T > const &  ,
tol = (T)0 
)
inline

Return true iff p is the plane at infinity.

Always returns false

Definition at line 148 of file vgl_plane_3d.h.

◆ operator<<()

template<class T >
std::ostream & operator<< ( std::ostream &  s,
const vgl_plane_3d< T > &  p 
)

Write to stream.

Definition at line 134 of file vgl_plane_3d.hxx.

◆ operator>>()

template<class T >
std::istream & operator>> ( std::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 143 of file vgl_plane_3d.hxx.