cpp/src/etape4/point3d.h
2023-09-13 16:20:52 +02:00

22 lines
No EOL
474 B
C++

#ifndef HEADER_POINT3D
#define HEADER_POINT3D
#include "point2d.h"
class Point3D : public Point2D
{
public:
Point3D();
Point3D(float x, float y, float z);
Point3D(Point2D point,float z);
~Point3D();
void Saisie(float x, float y, float z);
void Affiche();
// Bonus avec les operateurs.
Point3D operator+(const Point3D& other);
Point3D operator*(int left);
private:
float _z;
};
#endif