Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F94117629
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:27
Size
833 B
Mime Type
text/x-c
Expires
Fri, Dec 6, 01:27 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
22738508
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
)
{}
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