G4PointRat Class Reference

#include <G4PointRat.hh>


Public Member Functions

 G4PointRat ()
 ~G4PointRat ()
 G4PointRat (const G4Point3D &)
G4PointRatoperator= (const G4Point3D &)
G4PointRatoperator= (const G4PointRat &)
G4double x () const
void setX (G4double Value)
G4double y () const
void setY (G4double Value)
G4double z () const
void setZ (G4double Value)
G4double w () const
void setW (G4double Value)
G4Point3D pt () const
G4double PlaneDistance (const G4Plane3D &Pl) const
G4int GetType (void) const


Detailed Description

Definition at line 56 of file G4PointRat.hh.


Constructor & Destructor Documentation

G4PointRat::G4PointRat (  ) 

Definition at line 38 of file G4PointRat.cc.

00039  : pt3d(), s(1)
00040 {
00041 }

G4PointRat::~G4PointRat (  ) 

Definition at line 48 of file G4PointRat.cc.

00049 {
00050 }

G4PointRat::G4PointRat ( const G4Point3D  ) 

Definition at line 43 of file G4PointRat.cc.

00044  : pt3d(tmp), s(1)
00045 {
00046 }


Member Function Documentation

G4int G4PointRat::GetType ( void   )  const [inline]

Definition at line 98 of file G4PointRat.icc.

00099 {
00100   return 4;
00101 }

G4PointRat & G4PointRat::operator= ( const G4PointRat  ) 

Definition at line 52 of file G4PointRat.cc.

References w(), x(), y(), and z().

00053 {
00054     if (this == &a)  { return *this; }
00055 
00056     pt3d.setX(a.x());
00057     pt3d.setY(a.y());
00058     pt3d.setZ(a.z());
00059     s=a.w();
00060     
00061     return *this;
00062 }

G4PointRat & G4PointRat::operator= ( const G4Point3D  ) 

Definition at line 64 of file G4PointRat.cc.

00065 {
00066     pt3d = a;
00067     s=1;
00068     
00069     return *this;
00070 }

G4double G4PointRat::PlaneDistance ( const G4Plane3D Pl  )  const [inline]

Definition at line 92 of file G4PointRat.icc.

00093 {
00094   return ((Pl.a()*pt3d.x() + Pl.b()*pt3d.y() + Pl.c()*pt3d.z()) - Pl.d());
00095 }

G4Point3D G4PointRat::pt (  )  const [inline]

Definition at line 86 of file G4PointRat.icc.

00087 {
00088   return pt3d;
00089 }

void G4PointRat::setW ( G4double  Value  )  [inline]

Definition at line 80 of file G4PointRat.icc.

Referenced by G4ControlPoints::CalcValues().

00081 {
00082   s=Value;
00083 }

void G4PointRat::setX ( G4double  Value  )  [inline]

Definition at line 44 of file G4PointRat.icc.

Referenced by G4ControlPoints::CalcValues().

00045 {
00046   pt3d.setX ( Value );
00047 }

void G4PointRat::setY ( G4double  Value  )  [inline]

Definition at line 56 of file G4PointRat.icc.

Referenced by G4ControlPoints::CalcValues().

00057 {
00058   pt3d.setY ( Value );
00059 }

void G4PointRat::setZ ( G4double  Value  )  [inline]

Definition at line 68 of file G4PointRat.icc.

Referenced by G4ControlPoints::CalcValues().

00069 {
00070   pt3d.setZ ( Value );
00071 }

G4double G4PointRat::w (  )  const [inline]

Definition at line 74 of file G4PointRat.icc.

Referenced by G4ControlPoints::CalcValues(), and operator=().

00075 {
00076   return s;
00077 }

G4double G4PointRat::x (  )  const [inline]

Definition at line 38 of file G4PointRat.icc.

Referenced by G4ControlPoints::CalcValues(), and operator=().

00039 {
00040   return pt3d.x();
00041 }

G4double G4PointRat::y (  )  const [inline]

Definition at line 50 of file G4PointRat.icc.

Referenced by G4ControlPoints::CalcValues(), and operator=().

00051 {
00052   return pt3d.y();
00053 }

G4double G4PointRat::z (  )  const [inline]

Definition at line 62 of file G4PointRat.icc.

Referenced by G4ControlPoints::CalcValues(), and operator=().

00063 {
00064   return pt3d.z();
00065 }


The documentation for this class was generated from the following files:
Generated on Mon May 27 17:52:56 2013 for Geant4 by  doxygen 1.4.7