ESyS-Particle
2.2
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
Vec3Comparer.h
Go to the documentation of this file.
1
2
// //
3
// Copyright (c) 2003-2013 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_LSMVEC3COMPARE_H
15
#define ESYS_LSMVEC3COMPARE_H
16
17
#include "
Foundation/vec3.h
"
18
19
namespace
esys
20
{
21
namespace
lsm
22
{
23
class
Vec3XyzComparer
24
{
25
public
:
26
bool
operator()
(
const
Vec3
&v1,
const
Vec3
&v2)
const
27
{
28
return
29
(
30
(v1.
X
() < v2.
X
())
31
||
32
(
33
(v1.
X
() == v2.
X
())
34
&&
35
(
36
(v1.
Y
() < v2.
Y
())
37
||
38
(
39
(v1.
Y
() == v2.
Y
())
40
&&
41
(v1.
Z
() < v2.
Z
())
42
)
43
)
44
)
45
);
46
}
47
};
48
49
class
Vec3ZyxComparer
50
{
51
public
:
52
bool
operator()
(
const
Vec3
&v1,
const
Vec3
&v2)
const
53
{
54
return
55
(
56
(v1.
Z
() < v2.
Z
())
57
||
58
(
59
(v1.
Z
() == v2.
Z
())
60
&&
61
(
62
(v1.
Y
() < v2.
Y
())
63
||
64
(
65
(v1.
Y
() == v2.
Y
())
66
&&
67
(v1.
X
() < v2.
X
())
68
)
69
)
70
)
71
);
72
}
73
};
74
}
75
}
76
#endif
Tools
StressCalculator
Vec3Comparer.h
Generated on Mon May 6 2013 23:26:31 for ESyS-Particle by
1.8.3.1