Classes | Defines | Functions
core/vgl/vgl_sphere_3d.h File Reference

a sphere in 3D nonhomogeneous space More...

#include <vcl_iosfwd.h>
#include <vgl/vgl_fwd.h>
#include <vgl/vgl_point_3d.h>

Go to the source code of this file.

Classes

class  vgl_sphere_3d< Type >
 Represents a cartesian 3D point. More...

Defines

#define VGL_SPHERE_3D_INSTANTIATE(T)   extern "please include vgl/vgl_sphere_3d.txx first"

Functions

template<class Type >
vcl_ostream & operator<< (vcl_ostream &os, const vgl_sphere_3d< Type > &sph)
 Writes "<vgl_sphere_3d centre=vgl_point_3d<x,y,z> radius=r)>" to stream.
template<class Type >
vcl_istream & operator>> (vcl_istream &is, vgl_sphere_3d< Type > &sph)
 Read from stream, possibly with formatting.

Detailed Description

a sphere in 3D nonhomogeneous space

Author:
Ian Scott

Definition in file vgl_sphere_3d.h.


Define Documentation

#define VGL_SPHERE_3D_INSTANTIATE (   T)    extern "please include vgl/vgl_sphere_3d.txx first"

Definition at line 91 of file vgl_sphere_3d.h.


Function Documentation

template<class Type >
vcl_ostream& operator<< ( vcl_ostream &  os,
const vgl_sphere_3d< Type > &  sph 
)

Writes "<vgl_sphere_3d centre=vgl_point_3d<x,y,z> radius=r)>" to stream.

template<class Type >
vcl_istream& operator>> ( vcl_istream &  is,
vgl_sphere_3d< Type > &  sph 
)

Read from stream, possibly with formatting.

Either just reads 4 blank-separated numbers, or reads 4 comma-separated numbers, or reads 4 numbers in parenthesized form "(123, 321, 567, 890)"