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