HepPoint3D


HepPoint3D is a class describing a geometrical point in 3D. It is derived from the Hep3Vector class, so any methods of Hep3Vector can be applied to it. Affine transformations (translations, rotations, scalings and reflections) of HepPoint3D are performed by HepTransform3D.

Author

Evgueni Tcherniaev

See also

HepTransform3D, HepNormal3D, HepVector3D, HepPlane3D.

Declaration

#include "CLHEP/Geometry/Point3D.h"

class HepPoint3D : public Hep3Vector

Public Member Functions

Constructor
HepPoint3D(HepDouble x=0, HepDouble y=0, HepDouble z=0)
Copy constructor
HepPoint3D(const Hep3Vector &v)
=
HepPoint3D & operator = (const HepPoint3D &v)
Assignment.

HepPoint3D & operator = (const Hep3Vector &v)
Assignment of Hep3Vector and classes derived from it (HepVector3D, HepNormal3D).
distance
HepDouble distance() const
Distance to the origin.

HepDouble distance(HepPoint3D &p) const
Distance to another point.
distance2
HepDouble distance2() const
Distance squared to the origin.

HepDouble distance2(HepPoint3D &p) const
Distance squared to another point.
transform
HepPoint3D & transform(const HepTransform3D &m)
Affine transformation.


16 December 1997
EVC