HepPoint3D


HepPoint3D is a class describing a geometrical point in 3D. Transformations (translations, rotations, scalings and reflections) of HepPoint3D are performed by HepTransform3D.

Author

Evgueni Tcherniaev

See also

BasicVector3D, HepNormal3D, HepVector3D, HepPlane3D, HepTransform3D.

Declaration

#include "CLHEP/Geometry/Point3D.h"

class HepPoint3D : public BasicVector3D

Public Member Functions

Default constructor
HepPoint3D()
Constructor
HepPoint3D(double x, double y, double z)
Constructor
HepPoint3D(const BasicVector3D & v)
Constructor
HepPoint3D(const Hep3Vector & v)
=
HepPoint3D & operator = (const HepPoint3D &v)
Assignment.

HepPoint3D & operator = (const BasicVector3D &v)
Assignment of BasicVector3D 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.


21 June 2001
EVC