core/vgl/algo/vgl_ellipsoid_3d.txx
Go to the documentation of this file.
00001 // This is core/vgl/algo/vgl_ellipsoid_3d.txx
00002 #ifndef vgl_ellipsoid_3d_txx_
00003 #define vgl_ellipsoid_3d_txx_
00004 //:
00005 // \file
00006 
00007 #include "vgl_ellipsoid_3d.h"
00008 #include <vcl_iostream.h>
00009 
00010 template <class T>
00011 bool vgl_ellipsoid_3d<T>::operator==(vgl_ellipsoid_3d<T> const& e) const
00012 {
00013   return (this==&e) ||
00014          ( e.center() == this->center_ &&
00015            e.x_halflength() == this->x_halflength_ &&
00016            e.y_halflength() == this->y_halflength_ &&
00017            e.z_halflength() == this->z_halflength_ &&
00018            e.orientation()  == this->orientation_);
00019 }
00020 
00021 template <class T>
00022 vcl_ostream& vgl_ellipsoid_3d<T>::print(vcl_ostream& s) const
00023 {
00024   return s << "<vgl_ellipsoid_3d center=" << center_
00025            << ", orientation=" << orientation_ << ", size=("
00026            << x_halflength_ << ',' << y_halflength_ << ',' << z_halflength_ << ")>";
00027 }
00028 
00029 #undef VGL_ELLIPSOID_3D_INSTANTIATE
00030 #define VGL_ELLIPSOID_3D_INSTANTIATE(T) \
00031 template class vgl_ellipsoid_3d<T >; \
00032 template vcl_ostream& operator<<(vcl_ostream&, vgl_ellipsoid_3d<T >const&)
00033 
00034 #endif // vgl_ellipsoid_3d_txx_