Overture
Version 25
Main Page
Namespaces
Classes
Files
File List
File Members
Overture.v25.d
GridGenerator
RotatedBox.h
Go to the documentation of this file.
1
#ifndef ROTATED_BOX_H
2
#define ROTATED_BOX_H
3
4
#include "
Overture.h
"
5
6
// The RotatedBox class is used to define a refinement grid for AMR
7
// Given a set of points in space (tagged error points) a rotated
8
// box with be determined that contains all the points.
9
10
class
RotatedBox
11
{
12
public
:
13
RotatedBox
(
int
numberOfDimensions
);
14
RotatedBox
(
int
numberOfDimensions,
realArray
&
x
);
15
~RotatedBox
();
16
17
int
display
()
const
;
18
int
fitBox
();
19
real
getEfficiency
()
const
;
20
int
numberOfPoints
()
const
;
21
22
bool
intersects
(
RotatedBox
& box,
real
distance=0. )
const
;
// does this box intersect another
23
24
int
setPoints
(
realArray
& x );
25
26
real
centre
[3];
// centre
27
real
axisVector
[3][3];
// vectors in the directions of the axes
28
real
halfAxesLength
[3];
// half the length of the axes.
29
30
int
numberOfDimensions
;
31
realArray
xa
;
// positions of tagged points inside this box
32
};
33
34
#endif
35
36
Generated on Fri Jan 4 2013 10:17:58 for Overture by
1.8.3