Classes | Macros | Functions
vgl_sphere_3d.h File Reference

a sphere in 3D nonhomogeneous space More...

#include <iosfwd>
#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...
 

Macros

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

Functions

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

Detailed Description

a sphere in 3D nonhomogeneous space

Author
Ian Scott

Definition in file vgl_sphere_3d.h.

Macro Definition Documentation

◆ VGL_SPHERE_3D_INSTANTIATE

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

Definition at line 104 of file vgl_sphere_3d.h.

Function Documentation

◆ operator<<()

template<class Type >
std::ostream& operator<< ( std::ostream &  os,
const vgl_sphere_3d< Type > &  sph 
)

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

◆ operator>>()

template<class Type >
std::istream& operator>> ( std::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)"