Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Koerper {
- private:
- float masse;
- float xPosition;
- float yPosition;
- public:
- Koerper(float masse)
- {
- this->masse=masse;
- }
- string text()
- {
- stringstream s;
- s << "("<< xPosition << "," << yPosition << ")";
- return s.str();
- }
- float xGeschwindigkeit;
- float yGeschwindigkeit;
- float betragGeschwindigkeit, xBeschleunigung, yBeschleunigung;
- };
- class Vektor{
- private:
- float xKraft;
- float yKraft;
- float X_SCHWERKRAFT;
- float Y_SCHWERKRAFT;
- float X_REIBUNGSKRAFT_FAKTOR;
- float Y_REIBUNGSKRAFT_FAKTOR;
- public:
- Vektor(float xKraft,float yKraft)
- {
- this->xKraft = xKraft;
- this->yKraft = yKraft;
- }
- Vektor(float X_SCHWERKRAFT,float Y_SCHWERKRAFT)
- {
- this->X_SCHWERKRAFT = X_SCHWERKRAFT;
- this->Y_SCHWERKRAFT = Y_SCHWERKRAFT;
- }
- Vektor(float X_REIBUNGSKRAFT_FAKTOR,float Y_REIBUNGSKRAFT_FAKTOR)
- {
- this->X_REIBUNGSKRAFT_FAKTOR = X_REIBUNGSKRAFT_FAKTOR;
- this->Y_REIBUNGSKRAFT_FAKTOR = Y_REIBUNGSKRAFT_FAKTOR;
- }
- };
Add Comment
Please, Sign In to add comment