19 #include "CLHEP/Vector/ThreeVector.h"
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);
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"
Point3D< double > & operator=(const BasicVector3D< float > &v)
float distance2(const Point3D< float > &p) const
Point3D< double > & operator=(const BasicVector3D< double > &v)
Point3D(float x1, float y1, float z1)
HepGeom::Point3D< double > HepPoint3D
double distance(const Point3D< double > &p) const
Point3D(const BasicVector3D< float > &v)
Point3D< float > & operator=(const Point3D< float > &v)
Point3D(const BasicVector3D< double > &v)
float distance(const Point3D< float > &p) const
Point3D< double > & operator=(const Point3D< double > &v)
Point3D< float > & operator=(const BasicVector3D< float > &v)
void set(T x1, T y1, T z1)
Normal3D< float > operator*(const Transform3D &m, const Normal3D< float > &v)
Point3D(const Point3D< double > &v)
Point3D(double x1, double y1, double z1)
double distance2(const Point3D< double > &p) const
Point3D(const BasicVector3D< float > &v)
Point3D(const CLHEP::Hep3Vector &v)
Point3D(const Point3D< float > &v)