#include "Math/GenVector/Translation3D.h"
#include "Math/GenVector/Plane3D.h"
#include "Math/GenVector/PositionVector3D.h"
#include <cmath>
#include <algorithm>
namespace ROOT {
namespace Math {
typedef Translation3D::Vector XYZVector; 
typedef PositionVector3D<Cartesian3D<double> > XYZPoint; 
Plane3D Translation3D::operator() (const Plane3D & plane) const
{
   
   XYZVector n = plane.Normal();
   
   
   double d = plane.HesseDistance();
   XYZPoint p( - d * n.X() , - d *n.Y(), -d *n.Z() );
   return Plane3D ( operator() (n), operator() (p) );
}
std::ostream & operator<< (std::ostream & os, const Translation3D & t)
{
   
   
   
   double m[3];
   t.GetComponents(m, m+3);
   os << "\n" << m[0] << "  " << m[1] << "  " << m[2] << "\n";
   return os;
}
}  
}  
This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.