Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F94924467
penduleressort.h
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Wed, Dec 11, 10:54
Size
1 KB
Mime Type
text/x-c++
Expires
Fri, Dec 13, 10:54 (1 d, 21 h)
Engine
blob
Format
Raw Data
Handle
22900780
Attached To
rSYMKIT symkit
penduleressort.h
View Options
#ifndef PENDULERESSORT_H
#define PENDULERESSORT_H
#include "actors/systems/symsystem.h"
#include "vector.h"
class
PendrSphere
;
class
PenduleRessort
;
class
GLModel
;
class
PenduleRessortPanel
;
class
PenduleR
:
public
SymSystem
{
// system descriptor
PenduleRessort
*
descriptor
;
// array of 2 spheres
PendrSphere
*
sphere
[
2
];
PenduleRessortPanel
*
panel
;
public:
/* Constructor and Destructor */
PenduleR
(
GLModel
*
,
SVector
<
3
>
offset
=
SVector
<
3
>::
nullv
);
//Ce premier constructeur on l'utilise pour allégerer l'écriture dans betasce
PenduleR
(
GLModel
*
,
const
Vector
&
,
const
Vector
&
,
const
double
&
,
const
double
&
,
const
double
&
,
const
double
&
,
const
double
&
fr1
=
0
,
const
double
&
fr2
=
0
,
const
double
&
g
=
9.81
,
SVector
<
3
>
offset
=
SVector
<
3
>::
nullv
);
~
PenduleR
();
PendrSphere
*
getPendule
();
PendrSphere
*
getRessort
();
PenduleRessortPanel
*
getPanel
();
virtual
void
evolve
(
float
dt
)
override
;
virtual
void
render
(
symkit
::
render_s
)
override
;
double
energy
()
const
;
// constants
static
const
Vector
pos
,
speed
;
static
const
double
l
,
k
,
m1
,
m2
,
fr1
,
fr2
,
g
;
};
#endif
// PENDULERESSORT_H
Event Timeline
Log In to Comment