Page MenuHomec4science

matpoint.h
No OneTemporary

File Metadata

Created
Thu, Dec 5, 05:20

matpoint.h

#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