Import Geant4 10.2.0 source tree
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
// Copyright (C) 2010, Guy Barrand. All rights reserved.
|
||||
// See the file tools.license for terms.
|
||||
|
||||
#ifndef tools_box3f
|
||||
#define tools_box3f
|
||||
|
||||
#include "box3"
|
||||
#include "vec3f"
|
||||
#include <cfloat> //FLT_MAX
|
||||
|
||||
namespace tools {
|
||||
|
||||
class box3f : public box3<vec3f> {
|
||||
typedef box3<vec3f> parent;
|
||||
static float num_max() {return FLT_MAX;}
|
||||
public:
|
||||
box3f():parent(){make_empty();}
|
||||
virtual ~box3f() {}
|
||||
public:
|
||||
box3f(const box3f& a_from):parent(a_from){}
|
||||
box3f& operator=(const box3f& a_from){
|
||||
parent::operator=(a_from);
|
||||
return *this;
|
||||
}
|
||||
public:
|
||||
void make_empty(){
|
||||
m_min.set_value( num_max(), num_max(), num_max());
|
||||
m_max.set_value(-num_max(), -num_max(), -num_max());
|
||||
}
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user