Macros | Functions
vgl_sphere_3d.hxx File Reference

a sphere in 3D nonhomogeneous space More...

#include <cmath>
#include <iostream>
#include "vgl_sphere_3d.h"
#include <vgl/vgl_point_3d.h>
#include <vgl/vgl_closest_point.h>
#include <vgl/vgl_line_3d_2_points.h>

Go to the source code of this file.

Macros

#define VGL_SPHERE_3D_INSTANTIATE(T)
 

Functions

template<class T >
std::ostream & operator<< (std::ostream &os, const vgl_sphere_3d< T > &sph)
 Writes "<vgl_sphere_3d centre=vgl_point_3d<x,y,z> radius=r)>" to stream. More...
 
template<class T >
std::istream & operator>> (std::istream &is, vgl_sphere_3d< T > &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.hxx.

Macro Definition Documentation

◆ VGL_SPHERE_3D_INSTANTIATE

#define VGL_SPHERE_3D_INSTANTIATE (   T)
Value:
template class vgl_sphere_3d<T >; \
template std::ostream& operator<<(std::ostream&, vgl_sphere_3d<T >const&); \
template std::istream& operator>>(std::istream&, vgl_sphere_3d<T >&)
std::ostream & operator<<(std::ostream &s, vgl_orient_box_3d< Type > const &p)
Write box to stream.
std::istream & operator>>(std::istream &is, vgl_orient_box_3d< Type > &p)
Read box from stream.

Definition at line 152 of file vgl_sphere_3d.hxx.

Function Documentation

◆ operator<<()

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

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

Definition at line 134 of file vgl_sphere_3d.hxx.

◆ operator>>()

template<class T >
std::istream& operator>> ( std::istream &  is,
vgl_sphere_3d< T > &  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)"

Definition at line 145 of file vgl_sphere_3d.hxx.