cpp/tp2/segment.h

25 lines
513 B
C++

#ifndef SEGMENT_H_INCLUDED
#define SEGMENT_H_INCLUDED
#include "point.h"
class segment{
private :
point m_pointA;
point m_pointB;
public :
segment(void);
segment(point paramA, point paramB);
segment(segment& copie);
point getPointA(void);
point getPointB(void);
void rotateSegment(double rotation);
void homothetieSegment(float k);
void translationSegment(SHORT x, SHORT y);
void afficher(Bmp& imageTemp);
};
#endif // SEGMENT_H_INCLUDED