#ifndef _SPHERE_HPP
#define _SPHERE_HPP
#include <string>
#include "Point3D.hpp"
#include "Objet3D.hpp"
using namespace std;
class Sphere: public Objet3D {
private:
Point3D center;
float radius;
string materiau;
public:
Sphere(Point3D p, float r = 1.0, string m = "verre", Couleur c) : Objet3D(c), center(p), radius(r), materiau(m) {};
void afficher();
void translater(Point3D tp, float tr);
void lire_radius(float& rd);
void donnerRayon(float& rd);
void donnerCenter(Point3D& cntr);
void donnerVolume(float& v);
void miseEchelle(float f);
int compare(Sphere S);
}; // classe Sphere
#endif
Aucun commentaire:
Enregistrer un commentaire