Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F94258649
matpoint.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
Thu, Dec 5, 05:20
Size
889 B
Mime Type
text/x-c++
Expires
Sat, Dec 7, 05:20 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
22738358
Attached To
rSYMKIT symkit
matpoint.h
View Options
#ifndef __MATPOINT_H__
#define __MATPOINT_H__
#include "shape.h"
#include "particle.h"
class
MatPoint
:
public
Shape
{
public:
MatPoint
(
sid_t
sid
,
double
mass
,
const
Vector
&
loc
=
nullv
,
const
std
::
string
label
=
""
,
const
struct
render_s
*
flags
=
0
);
MatPoint
(
sid_t
sid
,
const
Particle
&
particle
,
const
std
::
string
label
=
""
,
const
struct
render_s
*
flags
=
0
);
~
MatPoint
();
/* Get fields */
double
mass
()
const
;
const
Vector
&
speed
()
const
;
const
Vector
&
position
()
const
;
Particle
getParticle
()
const
;
/* Set fields */
void
setPosition
(
const
Vector
&
pos
);
void
move
(
const
Vector
&
delta
);
void
setSpeed
(
const
Vector
&
speed
);
void
setMass
(
double
mass
);
private:
Particle
*
particle
;
};
#endif
Event Timeline
Log In to Comment