Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F94115569
pendparticle.cpp
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 4, 01:06
Size
857 B
Mime Type
text/x-c
Expires
Fri, Dec 6, 01:06 (2 d)
Engine
blob
Format
Raw Data
Handle
22738529
Attached To
rSYMKIT symkit
pendparticle.cpp
View Options
#include "pendparticle.h"
#include "descriptors/pendulec.h"
PendParticle
::
PendParticle
(
PenduleC
*
pendulec
,
GLModel
*
model
,
const
QString
&
label
,
specs_t
flags
)
:
OscillatorParticle
(
pendulec
,
model
,
label
,
flags
)
{
setColor
(
1
,
1
,
1
);
}
const
PenduleC
*
PendParticle
::
getPenduledescriptor
()
const
{
return
cast_descriptor
<
PenduleC
>
();
}
#include "skerror.h"
using
namespace
symkit
;
void
PendParticle
::
initialize
()
{
if
(
!
isBound
())
throw
SKError
(
ERR_INIT
,
"initialize"
,
"alpha.PendParticle"
"Descriptor ins't bound"
);
}
#include "assets.h"
void
PendParticle
::
evolve
(
float
)
{
setColor
(
alpha
::
colorGradientFunction
(
getPenduledescriptor
()
->
getp_prime
().
module
(),
3.0
)
);
}
Event Timeline
Log In to Comment