CLHEP 2.0.4.7 Reference Documentation
   
CLHEP Home Page     CLHEP Documentation     CLHEP Bug Reports

testBug6740.cc

Go to the documentation of this file.
00001 
00002 #include <iostream>
00003 
00004 #include "CLHEP/Geometry/Point3D.h"
00005 #include "CLHEP/Vector/ThreeVector.h"
00006 
00007 typedef HepGeom::Point3D<double> HepPoint3D;
00008 
00009 int main(int, char **) {
00010 
00011   CLHEP::Hep3Vector d(10,0,0);
00012   HepPoint3D a(0,0,0);
00013   HepPoint3D pv(1,1,1);
00014 
00015   CLHEP::Hep3Vector dist = a-pv; // this does not compile anymore 
00016   CLHEP::Hep3Vector Cross = dist.cross(d.unit()); 
00017   std::cout << Cross.mag() << std::endl;
00018 
00019 }

Generated on Thu Jul 1 22:02:31 2010 for CLHEP by  doxygen 1.4.7