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

45 lines
1.1 KiB
C++

// 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: G4UVHit.hh,v 1.5 2000/11/08 14:22:05 gcosmo Exp $
// GEANT4 tag $Name: geant4-03-00 $
//
// ----------------------------------------------------------------------
// Class G4UVHit
//
// Class Description:
//
// Utility class for knots.
// Authors: J.Sulkimo, P.Urban.
// Revisions by: L.Broglia, G.Cosmo.
// ----------------------------------------------------------------------
#ifndef __G4UV_Hit
#define __G4UV_Hit
#include "globals.hh"
class G4UVHit
{
public:
G4UVHit() {u=-1; v=-1; next=0;}
G4UVHit(G4double u_hit, G4double v_hit) {u = u_hit; v = v_hit; next=0;}
~G4UVHit() {}
void SetNext(G4UVHit* n) { next = n; }
G4UVHit* GetNext() { return next; }
G4double GetU() const { return u; }
G4double GetV() const { return v; }
private:
G4UVHit* next;
G4double u, v;
};
#endif