73 set(v.
x(),v.
y(),v.
z());
return *
this;
79 set(v.
x(),v.
y(),v.
z());
return *
this;
89 float dx = p.
x()-
x(), dy = p.
y()-
y(), dz = p.
z()-
z();
90 return dx*dx + dy*dy + dz*dz;
95 float distance()
const {
return std::sqrt(distance2()); }
100 return std::sqrt(distance2(p));
113 operator*(
const Transform3D &
m,
const Point3D<float> &
p);
176 set(v.
x(),v.
y(),v.
z());
return *
this;
182 set(v.
x(),v.
y(),v.
z());
return *
this;
188 set(v.
x(),v.
y(),v.
z());
return *
this;
198 double dx = p.
x()-
x(), dy = p.
y()-
y(), dz = p.
z()-
z();
199 return dx*dx + dy*dy + dz*dz;
204 double distance()
const {
return std::sqrt(distance2()); }
209 return std::sqrt(distance2(p));
222 operator*(
const Transform3D &
m,
const Point3D<double> &
p);
float distance2(const Point3D< float > &p) const
Point3D(double x1, double y1, double z1)
void set(T x1, T y1, T z1)
float distance(const Point3D< float > &p) const
Point3D< float > & operator=(const Point3D< float > &v)
double distance2(const Point3D< double > &p) const
Point3D(const BasicVector3D< float > &v)
double distance(const Point3D< double > &p) const
Point3D< float > & operator=(const BasicVector3D< float > &v)
Point3D(const BasicVector3D< double > &v)
static constexpr double m
Point3D(float x1, float y1, float z1)
Point3D< double > & operator=(const BasicVector3D< double > &v)
Point3D(const BasicVector3D< float > &v)
Point3D< double > & operator=(const BasicVector3D< float > &v)
Point3D(const Point3D< float > &v)
Point3D< double > & operator=(const Point3D< double > &v)
Normal3D< float > operator*(const Transform3D &m, const Normal3D< float > &v)
Point3D(const Point3D< double > &v)
Point3D(const CLHEP::Hep3Vector &v)