Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F86438971
ping_pong_ball.hh
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
Sun, Oct 6, 12:22
Size
909 B
Mime Type
text/x-c++
Expires
Tue, Oct 8, 12:22 (1 d, 21 h)
Engine
blob
Format
Raw Data
Handle
20643452
Attached To
R9484 sp4e-homework-lars-bertil
ping_pong_ball.hh
View Options
#ifndef __PING_PONG_BALL__HH__
#define __PING_PONG_BALL__HH__
/* -------------------------------------------------------------------------- */
#include "particle.hh"
//! Class for ping-pong ball
class
PingPongBall
:
public
Particle
{
/* ------------------------------------------------------------------------ */
/* Methods */
/* ------------------------------------------------------------------------ */
public
:
//! Get contact dissipation
Real
&
getContactDissipation
()
{
return
contact_dissipation
;
}
//! Get ball radius
Real
&
getRadius
()
{
return
radius
;
}
void
printself
(
std
::
ostream
&
stream
)
const
override
;
void
initself
(
std
::
istream
&
sstr
)
override
;
private
:
Real
radius
,
contact_dissipation
;
};
/* -------------------------------------------------------------------------- */
#endif
//__PING_PONG_BALL__HH__
Event Timeline
Log In to Comment