Defines | Functions
core/vgl/vgl_vector_3d.txx File Reference
#include "vgl_vector_3d.h"
#include "vgl_tolerance.txx"
#include <vcl_cmath.h>
#include <vcl_iostream.h>
#include <vcl_cassert.h>
#include <vcl_deprecated.h>

Go to the source code of this file.

Defines

#define vgl_vector_3d_txx_
#define VGL_VECTOR_3D_INSTANTIATE(T)

Functions

template<class T >
double angle (vgl_vector_3d< T > const &a, vgl_vector_3d< T > const &b)
template<class T >
bool orthogonal (vgl_vector_3d< T > const &a, vgl_vector_3d< T > const &b, double eps)
template<class T >
bool parallel (vgl_vector_3d< T > const &a, vgl_vector_3d< T > const &b, double eps)
template<class T >
vgl_vector_3d< T > orthogonal_vectors (vgl_vector_3d< T > const &a, double s)
template<class T >
vcl_ostream & operator<< (vcl_ostream &s, vgl_vector_3d< T > const &p)
 Write "<vgl_vector_3d x,y,z> " to stream.
template<class T >
vcl_istream & operator>> (vcl_istream &is, vgl_vector_3d< T > &p)
 Read from stream, possibly with formatting.

Detailed Description

Definition in file vgl_vector_3d.txx.


Define Documentation

#define VGL_VECTOR_3D_INSTANTIATE (   T)
Value:
template class vgl_vector_3d<T >;\
VCL_INSTANTIATE_INLINE(vgl_vector_3d<T >  operator+         (vgl_vector_3d<T > const&, vgl_vector_3d<T > const&));\
VCL_INSTANTIATE_INLINE(vgl_vector_3d<T >  operator-         (vgl_vector_3d<T > const&, vgl_vector_3d<T > const&));\
VCL_INSTANTIATE_INLINE(vgl_vector_3d<T >& operator+=        (vgl_vector_3d<T >&, vgl_vector_3d<T > const&));\
VCL_INSTANTIATE_INLINE(vgl_vector_3d<T >& operator-=        (vgl_vector_3d<T >&, vgl_vector_3d<T > const&));\
VCL_INSTANTIATE_INLINE(vgl_vector_3d<T >  operator+         (vgl_vector_3d<T > const&));\
VCL_INSTANTIATE_INLINE(vgl_vector_3d<T >  operator-         (vgl_vector_3d<T > const&));\
VCL_INSTANTIATE_INLINE(vgl_vector_3d<T >  operator*         (double, vgl_vector_3d<T > const&));\
VCL_INSTANTIATE_INLINE(vgl_vector_3d<T >  operator*         (vgl_vector_3d<T > const&, double));\
VCL_INSTANTIATE_INLINE(vgl_vector_3d<T >  operator/         (vgl_vector_3d<T > const&, double));\
VCL_INSTANTIATE_INLINE(vgl_vector_3d<T >& operator*=        (vgl_vector_3d<T >&, double));\
VCL_INSTANTIATE_INLINE(vgl_vector_3d<T >& operator/=        (vgl_vector_3d<T >&, double));\
VCL_INSTANTIATE_INLINE(T                  dot_product       (vgl_vector_3d<T > const&, vgl_vector_3d<T > const&));\
VCL_INSTANTIATE_INLINE(T                  inner_product     (vgl_vector_3d<T > const&, vgl_vector_3d<T > const&));\
VCL_INSTANTIATE_INLINE(vgl_vector_3d<T >  cross_product     (vgl_vector_3d<T > const&, vgl_vector_3d<T > const&));\
VCL_INSTANTIATE_INLINE(double             cos_angle         (vgl_vector_3d<T > const&, vgl_vector_3d<T > const&));\
template               double             angle             (vgl_vector_3d<T > const&, vgl_vector_3d<T > const&);\
template               bool               orthogonal        (vgl_vector_3d<T > const&, vgl_vector_3d<T > const&, double);\
template               bool               parallel          (vgl_vector_3d<T > const&, vgl_vector_3d<T > const&, double);\
template               vgl_vector_3d<T >  orthogonal_vectors(vgl_vector_3d<T > const&, double);\
VCL_INSTANTIATE_INLINE(double             operator/         (vgl_vector_3d<T > const&, vgl_vector_3d<T > const&));\
VCL_INSTANTIATE_INLINE(vgl_vector_3d<T >& normalize         (vgl_vector_3d<T >&));\
VCL_INSTANTIATE_INLINE(vgl_vector_3d<T >  normalized        (vgl_vector_3d<T > const&));\
template               vcl_ostream&       operator<<        (vcl_ostream&, vgl_vector_3d<T >const&);\
template               vcl_istream&       operator>>        (vcl_istream&, vgl_vector_3d<T >&)

Definition at line 167 of file vgl_vector_3d.txx.

#define vgl_vector_3d_txx_

Definition at line 3 of file vgl_vector_3d.txx.


Function Documentation

template<class T >
double angle ( vgl_vector_3d< T > const &  a,
vgl_vector_3d< T > const &  b 
)

Definition at line 31 of file vgl_vector_3d.txx.

template<class T >
vcl_ostream& operator<< ( vcl_ostream &  s,
vgl_vector_3d< T > const &  p 
)

Write "<vgl_vector_3d x,y,z> " to stream.

Definition at line 120 of file vgl_vector_3d.txx.

template<class T >
vcl_istream & operator>> ( vcl_istream &  is,
vgl_vector_3d< T > &  p 
)

Read from stream, possibly with formatting.

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

Definition at line 161 of file vgl_vector_3d.txx.

template<class T >
bool orthogonal ( vgl_vector_3d< T > const &  a,
vgl_vector_3d< T > const &  b,
double  eps 
)

Definition at line 47 of file vgl_vector_3d.txx.

template<class T >
vgl_vector_3d<T> orthogonal_vectors ( vgl_vector_3d< T > const &  a,
double  s 
)

Definition at line 66 of file vgl_vector_3d.txx.

template<class T >
bool parallel ( vgl_vector_3d< T > const &  a,
vgl_vector_3d< T > const &  b,
double  eps 
)

Definition at line 57 of file vgl_vector_3d.txx.