ESyS-Particle
2.2
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
Vec3Py.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_LSMVEC3PY_H
15
#define ESYS_LSMVEC3PY_H
16
17
#include <boost/python.hpp>
18
#include "
Foundation/vec3.h
"
19
#include "
Foundation/StringUtil.h
"
20
#include "
Python/BoostPythonUtil/Util.h
"
21
22
#include <sstream>
23
24
namespace
esys
25
{
26
namespace
lsm
27
{
28
class
Vec3Py
:
public
Vec3
29
{
30
public
:
31
Vec3Py
();
32
33
Vec3Py
(
double
x,
double
y,
double
z);
34
35
Vec3Py
(
const
Vec3Py
&v);
36
37
Vec3Py
(
const
Vec3
&v);
38
39
Vec3Py
(
const
boost::python::object &pyOb);
40
41
int
len
()
const
;
42
43
double
getItem
(
int
i)
const
;
44
45
void
setItem
(
int
i,
double
val);
46
47
Vec3Py
operator-
(
const
Vec3Py
&v)
const
;
48
Vec3Py
operator+
(
const
Vec3Py
&v)
const
;
49
50
Vec3Py
operator+
(
double
s)
const
;
51
Vec3Py
operator-
(
double
s)
const
;
52
Vec3Py
operator*
(
double
s)
const
;
53
Vec3Py
operator/
(
double
s)
const
;
54
55
Vec3Py
rotatePy
(
const
Vec3Py
&axis,
const
Vec3Py
&axisPt)
const
;
56
57
double
norm
()
const
;
58
59
double
dot
(
const
Vec3Py
&v)
const
;
60
61
Vec3Py
cross
(
const
Vec3Py
&v)
const
;
62
63
std::string
toString
()
const
;
64
65
boost::python::list
toList
()
const
;
66
67
boost::python::tuple
toTuple
()
const
;
68
69
int
getIndex
(
int
i)
const
;
70
};
71
72
void
exportVec3
();
73
}
74
}
75
76
std::ostream &
operator<<
(std::ostream &oStream,
const
esys::lsm::Vec3Py
&vec);
77
78
#endif
Python
esys
lsm
util
Vec3Py.h
Generated on Mon May 6 2013 23:26:31 for ESyS-Particle by
1.8.3.1