detective1711

Class TamGiac

Mar 30th, 2014
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.80 KB | None | 0 0
  1. #pragma once
  2. class Point
  3. {
  4. private:
  5.     float x, y;
  6. public:
  7.     Point();
  8.     Point(int X, int Y);
  9.     ~Point();
  10.     void set(float X, float Y);
  11.     float getX();
  12.     float getY();
  13.     void move(float dx, float dy);
  14.     float distance(Point p);
  15. };
  16. class TamGiac
  17. {
  18. private:
  19.     Point A, B, C, G;
  20.     float chuvi();
  21.     double dientich();
  22. public:
  23.     TamGiac();
  24.     TamGiac(Point a, Point b, Point c);
  25.     TamGiac(int x1, int y1, int x2, int y2, int x3, int y3);
  26.     ~TamGiac();
  27.     void set(Point a, Point b, Point c);
  28.     void set(int x1, int y1, int x2, int y2, int x3, int y3);
  29.     void show_Points();
  30.     void Draw(int ColorNumber);
  31.     void Draw(int R, int G, int B);
  32.     void move(int dx, int dy);
  33.     void rotate(Point mark, int rad);
  34.     void show_calcresult();
  35.     void zoom_in(char key,float hesoPhongdai);
  36.     void zoom_out(char key, float hesoThunho);
  37. };
Advertisement
Add Comment
Please, Sign In to add comment