ESyS-Particle
4.0.1
Main Page
Related Pages
Namespaces
Classes
Files
File List
Geometry
SphereBoxVolCalculator.h
1
2
// //
3
// Copyright (c) 2003-2011 by The University of Queensland //
4
// Earth Systems Science Computational Centre (ESSCC) //
5
// http://www.uq.edu.au/esscc //
6
// //
7
// Primary Business: Brisbane, Queensland, Australia //
8
// Licensed under the Open Software License version 3.0 //
9
// http://www.opensource.org/licenses/osl-3.0.php //
10
// //
12
13
14
#ifndef ESYS_LSMSPHEREBOXVOLCALCULATOR_H
15
#define ESYS_LSMSPHEREBOXVOLCALCULATOR_H
16
17
#include "Foundation/vec3.h"
18
#include "Geometry/IntersectionVolCalculator.h"
19
20
namespace
esys
21
{
22
namespace
lsm
23
{
28
class
SphereBoxVolCalculator
:
public
impl::IntersectionVolCalculator
<3, Vec3>
29
{
30
public
:
31
typedef
impl::IntersectionVolCalculator<3, Vec3>
Inherited
;
32
typedef
Inherited::BasicSphere
Sphere
;
33
typedef
Inherited::BasicBox
Box
;
34
SphereBoxVolCalculator
(
35
const
Box
&box
36
) :
Inherited
(box)
37
{
38
}
39
40
double
getVolume(
const
Sphere
&sphere)
41
{
42
return
Inherited::getVolume(sphere);
43
}
44
45
private
:
46
};
47
};
48
};
49
#endif
Generated on Mon Jun 4 2012 22:48:35 for ESyS-Particle by
1.8.1