CLHEP VERSION Reference Documentation
   
CLHEP Home Page     CLHEP Documentation     CLHEP Bug Reports

HepGeom::Point3D< float > Class Template Reference

#include <Point3D.h>

Inheritance diagram for HepGeom::Point3D< float >:

HepGeom::BasicVector3D< float > List of all members.

Public Member Functions

 Point3D ()
 Point3D (float x1, float y1, float z1)
 Point3D (const float *a)
 Point3D (const Point3D< float > &v)
 Point3D (const BasicVector3D< float > &v)
 ~Point3D ()
Point3D< float > & operator= (const Point3D< float > &v)
Point3D< float > & operator= (const BasicVector3D< float > &v)
float distance2 () const
float distance2 (const Point3D< float > &p) const
float distance () const
float distance (const Point3D< float > &p) const
Point3D< float > & transform (const Transform3D &m)

Detailed Description

template<>
class HepGeom::Point3D< float >

Geometrical 3D Point with components of float type.

Author:
Evgeni Chernyaev <Evgueni.Tcherniaev@cern.ch>

Definition at line 44 of file Point3D.h.


Constructor & Destructor Documentation

HepGeom::Point3D< float >::Point3D (  )  [inline]

Default constructor.

Definition at line 48 of file Point3D.h.

HepGeom::Point3D< float >::Point3D ( float  x1,
float  y1,
float  z1 
) [inline]

Constructor from three numbers.

Definition at line 52 of file Point3D.h.

HepGeom::Point3D< float >::Point3D ( const float *  a  )  [inline, explicit]

Constructor from array of floats.

Definition at line 56 of file Point3D.h.

HepGeom::Point3D< float >::Point3D ( const Point3D< float > &  v  )  [inline]

Copy constructor.

Definition at line 61 of file Point3D.h.

HepGeom::Point3D< float >::Point3D ( const BasicVector3D< float > &  v  )  [inline]

Constructor from BasicVector3D<float>.

Definition at line 65 of file Point3D.h.

HepGeom::Point3D< float >::~Point3D (  )  [inline]

Destructor.

Definition at line 69 of file Point3D.h.


Member Function Documentation

float HepGeom::Point3D< float >::distance ( const Point3D< float > &  p  )  const [inline]

Returns distance to the point.

Definition at line 100 of file Point3D.h.

float HepGeom::Point3D< float >::distance (  )  const [inline]

Returns distance to the origin.

Definition at line 96 of file Point3D.h.

float HepGeom::Point3D< float >::distance2 ( const Point3D< float > &  p  )  const [inline]

Returns distance to the point squared.

Definition at line 89 of file Point3D.h.

References HepGeom::BasicVector3D< T >::x(), HepGeom::BasicVector3D< T >::y(), and HepGeom::BasicVector3D< T >::z().

float HepGeom::Point3D< float >::distance2 (  )  const [inline]

Returns distance to the origin squared.

Definition at line 85 of file Point3D.h.

References HepGeom::BasicVector3D< T >::mag2().

Point3D<float>& HepGeom::Point3D< float >::operator= ( const BasicVector3D< float > &  v  )  [inline]

Assignment from BasicVector3D<float>.

Reimplemented from HepGeom::BasicVector3D< float >.

Definition at line 79 of file Point3D.h.

References HepGeom::BasicVector3D< T >::set(), HepGeom::BasicVector3D< T >::x(), HepGeom::BasicVector3D< T >::y(), and HepGeom::BasicVector3D< T >::z().

Point3D<float>& HepGeom::Point3D< float >::operator= ( const Point3D< float > &  v  )  [inline]

Assignment.

Definition at line 73 of file Point3D.h.

References HepGeom::BasicVector3D< T >::set(), HepGeom::BasicVector3D< T >::x(), HepGeom::BasicVector3D< T >::y(), and HepGeom::BasicVector3D< T >::z().

Point3D< float > & HepGeom::Point3D< float >::transform ( const Transform3D m  ) 

Transformation by Transform3D.

Definition at line 12 of file Point3D.cc.

References HepGeom::Transform3D::dx(), HepGeom::Transform3D::dy(), HepGeom::Transform3D::dz(), HepGeom::BasicVector3D< T >::set(), HepGeom::BasicVector3D< T >::x(), HepGeom::Transform3D::xx(), HepGeom::Transform3D::xy(), HepGeom::Transform3D::xz(), HepGeom::BasicVector3D< T >::y(), HepGeom::Transform3D::yx(), HepGeom::Transform3D::yy(), HepGeom::Transform3D::yz(), HepGeom::BasicVector3D< T >::z(), HepGeom::Transform3D::zx(), HepGeom::Transform3D::zy(), and HepGeom::Transform3D::zz().


The documentation for this class was generated from the following files:
Generated on 15 Nov 2012 for CLHEP by  doxygen 1.4.7