Files
geant4/source/geometry/solids/BREPS/include/G4PointRat.icc
T
2016-06-08 15:55:53 +02:00

84 lines
1.4 KiB
Plaintext

// This code implementation is the intellectual property of
// the GEANT4 collaboration.
//
// By copying, distributing or modifying the Program (or any work
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4PointRat.icc,v 1.2 2000/08/28 15:00:34 gcosmo Exp $
// GEANT4 tag $Name: geant4-03-00 $
//
// --------------------------------------------------------------------
// GEANT 4 inline definitions file
//
// G4PointRat.icc
//
// Implementation of inline methods of G4PointRat
// --------------------------------------------------------------------
inline
G4double G4PointRat::x() const
{
return pt3d.x();
}
inline
void G4PointRat::setX (G4double Value)
{
pt3d.setX ( Value );
}
inline
G4double G4PointRat::y() const
{
return pt3d.y();
}
inline
void G4PointRat::setY (G4double Value)
{
pt3d.setY ( Value );
}
inline
G4double G4PointRat::z() const
{
return pt3d.z();
}
inline
void G4PointRat::setZ (G4double Value)
{
pt3d.setZ ( Value );
}
inline
G4double G4PointRat::w() const
{
return s;
}
inline
void G4PointRat::setW(G4double Value)
{
s=Value;
}
inline
G4Point3D G4PointRat::pt() const
{
return pt3d;
}
inline
G4double G4PointRat::PlaneDistance(const G4Plane3D& Pl) const
{
return ((Pl.a()*pt3d.x() + Pl.b()*pt3d.y() + Pl.c()*pt3d.z()) - Pl.d());
}
inline
G4int G4PointRat::GetType(void) const
{
return 4;
}