Go to the documentation of this file.
19 #include "CLHEP/Vector/ThreeVector.h"
35 class Point3D :
public BasicVector3D<T> {};
44 class Point3D<float> :
public BasicVector3D<float> {
74 set(
v.x(),
v.y(),
v.z());
return *
this;
80 set(
v.x(),
v.y(),
v.z());
return *
this;
90 float dx = p.
x()-
x(), dy = p.
y()-
y(), dz = p.
z()-
z();
91 return dx*dx + dy*dy + dz*dz;
96 float distance()
const {
return std::sqrt(distance2()); }
101 return std::sqrt(distance2(p));
114 operator*(
const Transform3D & m,
const Point3D<float> & p);
123 class Point3D<
double> :
public BasicVector3D<double> {
177 set(
v.x(),
v.y(),
v.z());
return *
this;
183 set(
v.x(),
v.y(),
v.z());
return *
this;
189 set(
v.x(),
v.y(),
v.z());
return *
this;
199 double dx = p.
x()-
x(), dy = p.
y()-
y(), dz = p.
z()-
z();
200 return dx*dx + dy*dy + dz*dz;
205 double distance()
const {
return std::sqrt(distance2()); }
210 return std::sqrt(distance2(p));
223 operator*(
const Transform3D & m,
const Point3D<double> & p);
228 #ifdef ENABLE_BACKWARDS_COMPATIBILITY
230 #include "CLHEP/config/CLHEP.h"
double distance(const Point3D< double > &p) const
Point3D(const BasicVector3D< float > &v)
Point3D< float > & operator=(const BasicVector3D< float > &v)
float distance(const Point3D< float > &p) const
Point3D< double > & operator=(const Point3D< double > &v)
HepGeom::Point3D< double > HepPoint3D
Point3D(const Point3D< float > &v)
double distance2(const Point3D< double > &p) const
Point3D< double > & operator=(const BasicVector3D< double > &v)
they are gone ZOOM Features Discontinued The following features of the ZOOM package were felt to be extreme overkill These have been after checking that no existing user code was utilizing as in SpaceVector v
Point3D(const Point3D< double > &v)
Issues Concerning the PhysicsVectors CLHEP Vector Merge The merge of ZOOM PhysicsVdectors and the CLHEP Vector package is completed The purpose of this document is to list the major issues that affected the merge of these and where relevant describe the resolutions More detailed documents describe more minor issues General Approach As agreed at the June CLHEP the approach is to combine the features of each ZOOM class with the corresponding CLHEP class expanding the interface to create a single lingua franca of what a Hep3Vector(for example) means. We are not forming SpaceVector as an class derived from Hep3Vector and enhancing it in that way. Another rule imposed by the agreement is to avoid using the Exceptions package(even though that will later go into CLHEP for other uses). A desirable goal is to avoid cluttering the interface and enlarging the code linked in when ordinary CLHEP Vector functionallity is used. To this end
Point3D< float > & operator=(const Point3D< float > &v)
Point3D(double x1, double y1, double z1)
Point3D(const CLHEP::Hep3Vector &v)
Point3D(const BasicVector3D< float > &v)
void set(T x1, T y1, T z1)
Point3D< double > & operator=(const BasicVector3D< float > &v)
float distance2(const Point3D< float > &p) const
Point3D(float x1, float y1, float z1)
Normal3D< float > operator*(const Transform3D &m, const Normal3D< float > &v)
Point3D(const BasicVector3D< double > &v)