a plane in 3D nonhomogeneous space More...
#include <vcl_iosfwd.h>
#include <vcl_cassert.h>
#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... | |
Defines | |
#define | VGL_PLANE_3D_INSTANTIATE(T) extern "please include vgl/vgl_plane_3d.txx 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. | |
template<class T > | |
vcl_ostream & | operator<< (vcl_ostream &s, 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. |
a plane in 3D nonhomogeneous space
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.
#define VGL_PLANE_3D_INSTANTIATE | ( | T | ) | extern "please include vgl/vgl_plane_3d.txx first" |
Definition at line 158 of file vgl_plane_3d.h.
bool is_ideal | ( | vgl_plane_3d< T > const & | , |
T | tol = (T)0 |
||
) | [inline] |
Return true iff p is the plane at infinity.
Always returns false
Definition at line 141 of file vgl_plane_3d.h.
vcl_ostream & operator<< | ( | vcl_ostream & | s, |
const vgl_plane_3d< T > & | p | ||
) |
Write to stream.
Definition at line 81 of file vgl_plane_3d.txx.
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.