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

56 lines
1.4 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: G4ConvexHull.hh,v 1.4 2000/11/08 14:22:00 gcosmo Exp $
// GEANT4 tag $Name: geant4-03-00 $
//
// ----------------------------------------------------------------------
// Class G4ConvexHull
//
// Class Description:
//
// Definition of a convex hull list.
// Author: J.Sulkimo, P.Urban.
// Revisions by: L.Broglia, G.Cosmo.
// ----------------------------------------------------------------------
#ifndef __CONVEXHULL_H
#define __CONVEXHULL_H
class G4ConvexHull
{
public: // with description
G4ConvexHull(){}
G4ConvexHull(G4double pparam, G4double mmin, G4double mmax)
: next(this), param (pparam), min(mmin), max(mmax){}
// Constructors
~G4ConvexHull(){}
// Destructor
G4ConvexHull* GetNextHull() { return next; }
G4double GetParam() const { return param; }
G4double GetMin() const { return min; }
G4double GetMax() const { return max; }
void SetNextHull(G4ConvexHull* n) { next=n; }
void SetParam(G4double p) { param=p; }
void SetMin(G4double x) { min=x; }
void SetMax(G4double y) { max=y; }
private:
G4ConvexHull *next;
G4double param;
G4double min;
G4double max;
};
#endif