Geant4 Cross Reference |
1 // -*- C++ -*- 1 // -*- C++ -*- 2 // ------------------------------------------- 2 // --------------------------------------------------------------------------- 3 // 3 // 4 // This file is a part of the CLHEP - a Class 4 // This file is a part of the CLHEP - a Class Library for High Energy Physics. 5 // 5 // 6 // Hep geometrical 3D Plane class 6 // Hep geometrical 3D Plane class 7 // 7 // 8 // Author: Evgeni Chernyaev <Evgueni.Tcherniae 8 // Author: Evgeni Chernyaev <Evgueni.Tcherniaev@cern.ch> 9 // 9 // 10 // History: 10 // History: 11 // 22.09.96 E.Chernyaev - initial version 11 // 22.09.96 E.Chernyaev - initial version 12 // 19.10.96 J.Allison - added == and <<. 12 // 19.10.96 J.Allison - added == and <<. 13 // 15.04.03 E.Chernyaev - CLHEP-1.9: template 13 // 15.04.03 E.Chernyaev - CLHEP-1.9: template version 14 14 15 #include <iostream> 15 #include <iostream> 16 #include "CLHEP/Geometry/Plane3D.h" 16 #include "CLHEP/Geometry/Plane3D.h" 17 17 18 namespace HepGeom { 18 namespace HepGeom { 19 //------------------------------------------ 19 //-------------------------------------------------------------------------- 20 std::ostream & 20 std::ostream & 21 operator<<(std::ostream & os, const Plane3D< 21 operator<<(std::ostream & os, const Plane3D<float> & p) { 22 return os 22 return os 23 << '(' << p.a() << ',' << p.b() << ',' < 23 << '(' << p.a() << ',' << p.b() << ',' << p.c() << ',' << p.d() << ')'; 24 } 24 } 25 25 26 //------------------------------------------ 26 //-------------------------------------------------------------------------- 27 std::ostream & 27 std::ostream & 28 operator<<(std::ostream & os, const Plane3D< 28 operator<<(std::ostream & os, const Plane3D<double> & p) { 29 return os 29 return os 30 << '(' << p.a() << ',' << p.b() << ',' < 30 << '(' << p.a() << ',' << p.b() << ',' << p.c() << ',' << p.d() << ')'; 31 } 31 } 32 } /* namespace HepGeom */ 32 } /* namespace HepGeom */ 33 33