HepPoint3D Class Reference
[Geometry]

Geometrical 3D Point with components of double type. More...

#include <Point3D.h>

Inheritance diagram for HepPoint3D:

BasicVector3D List of all members.

Public Methods

 HepPoint3D ()
 Default constructor.

 HepPoint3D (double x, double y, double z)
 Constructor from three doubles.

 HepPoint3D (const BasicVector3D &v)
 Constructor from base class.

 HepPoint3D (const Hep3Vector &v)
 Constructor from Hep3Vector. More...

 ~HepPoint3D ()
 Destructor.

HepPoint3D & operator= (const HepPoint3D &v)
 Assignment.

HepPoint3D & operator= (const BasicVector3D &v)
 Assignment from BasicVector3D and classes derived from it: HepVector3D, HepNormal3D.

double distance2 () const
 Returns distance to the origin squared.

double distance2 (const HepPoint3D &p) const
 Returns distance to the point squared.

double distance () const
 Returns distance to the origin.

double distance (const HepPoint3D &p) const
 Returns distance to the point.

HepPoint3D & transform (const HepTransform3D &m)
 Transformation by HepTransform3D.


Detailed Description

Geometrical 3D Point with components of double type.

HepPoint3D, HepVector3D and HepNormal3D have very similar set of member functions. The difference among these classes is how they are transformed by HepTransform3D.

See also:
BasicVector3D
Author:
<Evgueni.Tcherniaev@cern.ch>


Constructor & Destructor Documentation

HepPoint3D::HepPoint3D const Hep3Vector   v [inline]
 

Constructor from Hep3Vector.

This constructor is needed only for backward compatibility and in principle should be absent.


The documentation for this class was generated from the following file:
Class Library for High Energy Physics (version 1.8)