Guest User

Untitled

a guest
Jul 19th, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.11 KB | None | 0 0
  1. class Koerper {
  2.  
  3.     private:
  4.     float masse;
  5.     float xPosition;
  6.     float yPosition;
  7.  
  8.     public:
  9.     Koerper(float masse)
  10.     {
  11.         this->masse=masse;
  12.     }
  13.  
  14.     string text()
  15.     {
  16.     stringstream s;
  17.     s << "("<< xPosition << "," << yPosition << ")";
  18.     return s.str();
  19.     }
  20.  
  21.     float xGeschwindigkeit;
  22.     float yGeschwindigkeit;
  23.     float betragGeschwindigkeit, xBeschleunigung, yBeschleunigung;
  24.  
  25.  
  26.  
  27.  
  28. };
  29.  
  30.  
  31.  
  32.  
  33.  
  34.  
  35. class Vektor{
  36.     private:
  37.     float xKraft;
  38.     float yKraft;
  39.     float X_SCHWERKRAFT;
  40.     float Y_SCHWERKRAFT;
  41.     float X_REIBUNGSKRAFT_FAKTOR;
  42.     float Y_REIBUNGSKRAFT_FAKTOR;
  43.  
  44.     public:
  45.  
  46.     Vektor(float xKraft,float yKraft)
  47.     {
  48.     this->xKraft = xKraft;
  49.     this->yKraft = yKraft;
  50.     }
  51.  
  52.     Vektor(float X_SCHWERKRAFT,float Y_SCHWERKRAFT)
  53.     {
  54.     this->X_SCHWERKRAFT = X_SCHWERKRAFT;
  55.     this->Y_SCHWERKRAFT = Y_SCHWERKRAFT;
  56.     }
  57.     Vektor(float X_REIBUNGSKRAFT_FAKTOR,float Y_REIBUNGSKRAFT_FAKTOR)
  58.     {
  59.     this->X_REIBUNGSKRAFT_FAKTOR = X_REIBUNGSKRAFT_FAKTOR;
  60.     this->Y_REIBUNGSKRAFT_FAKTOR = Y_REIBUNGSKRAFT_FAKTOR;
  61.     }
  62.  
  63. };
Add Comment
Please, Sign In to add comment