Defines | Functions
core/vgl/vgl_vector_2d.txx File Reference
#include "vgl_vector_2d.h"
#include <vcl_cmath.h>
#include <vcl_iostream.h>

Go to the source code of this file.

Defines

#define vgl_vector_2d_txx_
#define VGL_VECTOR_2D_INSTANTIATE(T)

Functions

template<class T >
double angle (vgl_vector_2d< T > const &a, vgl_vector_2d< T > const &b)
template<class T >
double signed_angle (vgl_vector_2d< T > const &a, vgl_vector_2d< T > const &b)
template<class T >
bool orthogonal (vgl_vector_2d< T > const &a, vgl_vector_2d< T > const &b, double eps)
template<class T >
bool parallel (vgl_vector_2d< T > const &a, vgl_vector_2d< T > const &b, double eps)
template<class T >
vgl_vector_2d< T > rotated (vgl_vector_2d< T > const &a, double angle)
template<class T >
vcl_ostream & operator<< (vcl_ostream &s, vgl_vector_2d< T > const &p)
 Write "<vgl_vector_2d x,y> " to stream.
template<class T >
vcl_istream & operator>> (vcl_istream &is, vgl_vector_2d< T > &p)
 Read x y from stream.

Detailed Description

Definition in file vgl_vector_2d.txx.


Define Documentation

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

Definition at line 102 of file vgl_vector_2d.txx.

#define vgl_vector_2d_txx_

Definition at line 3 of file vgl_vector_2d.txx.


Function Documentation

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

Definition at line 19 of file vgl_vector_2d.txx.

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

Write "<vgl_vector_2d x,y> " to stream.

Definition at line 62 of file vgl_vector_2d.txx.

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

Read x y from stream.

Definition at line 95 of file vgl_vector_2d.txx.

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

Definition at line 33 of file vgl_vector_2d.txx.

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

Definition at line 43 of file vgl_vector_2d.txx.

template<class T >
vgl_vector_2d<T> rotated ( vgl_vector_2d< T > const &  a,
double  angle 
)

Definition at line 53 of file vgl_vector_2d.txx.

template<class T >
double signed_angle ( vgl_vector_2d< T > const &  a,
vgl_vector_2d< T > const &  b 
)

Definition at line 26 of file vgl_vector_2d.txx.