28 lines
487 B
C++
28 lines
487 B
C++
#ifndef POISSON_H
|
|
#define POISSON_H
|
|
|
|
#include "point3D.h"
|
|
#include "vector.h"
|
|
class Poisson
|
|
{
|
|
public:
|
|
|
|
void anime(float t);
|
|
bool dans_voisinage( point3D p, double seuil = 1.5);
|
|
void affiche();
|
|
//signals:
|
|
|
|
//public slots:
|
|
// Poisson(point3D p);
|
|
Poisson(point3D p, point3D v);
|
|
private:
|
|
point3D position;
|
|
point3D vitesse, v_init;
|
|
double distance;
|
|
friend class Banc;
|
|
friend class Obstacle;
|
|
friend class aquarium;
|
|
};
|
|
|
|
#endif // POISSON_H
|