ESyS-Particle
2.2
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
BasicParticle.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
#ifndef __BASICPARTICLE_H
14
#define __BASICPARTICLE_H
15
16
// -- project includes --
17
#include "
vec3.h
"
18
30
class
CBasicParticle
31
{
32
protected
:
33
Vec3
m_pos
;
34
double
m_rad
;
35
int
m_id
;
36
37
public
:
38
CBasicParticle
();
39
CBasicParticle
(
int
,
const
Vec3
&,
double
);
40
41
inline
Vec3
&
getPPos
() {
return
m_pos
;};
42
inline
Vec3
getPos
()
const
{
return
m_pos
;};
43
inline
double
getRad
()
const
{
return
m_rad
;};
44
inline
int
getID
()
const
{
return
m_id
;};
45
46
inline
void
moveBy
(
Vec3
v){
m_pos
+=v;};
47
inline
void
moveTo
(
Vec3
v){
m_pos
=v;};
48
inline
void
setRad
(
double
r){
m_rad
=r;};
49
};
50
51
#endif //__BASICPARTICLE_H
ntable
util
BasicParticle.h
Generated on Mon May 6 2013 23:26:30 for ESyS-Particle by
1.8.3.1