Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #pragma once
- class Point
- {
- private:
- float x, y;
- public:
- Point();
- Point(int X, int Y);
- ~Point();
- void set(float X, float Y);
- float getX();
- float getY();
- void move(float dx, float dy);
- float distance(Point p);
- };
- class TamGiac
- {
- private:
- Point A, B, C, G;
- float chuvi();
- double dientich();
- public:
- TamGiac();
- TamGiac(Point a, Point b, Point c);
- TamGiac(int x1, int y1, int x2, int y2, int x3, int y3);
- ~TamGiac();
- void set(Point a, Point b, Point c);
- void set(int x1, int y1, int x2, int y2, int x3, int y3);
- void show_Points();
- void Draw(int ColorNumber);
- void Draw(int R, int G, int B);
- void move(int dx, int dy);
- void rotate(Point mark, int rad);
- void show_calcresult();
- void zoom_in(char key,float hesoPhongdai);
- void zoom_out(char key, float hesoThunho);
- };
Advertisement
Add Comment
Please, Sign In to add comment