19 lines
443 B
C
19 lines
443 B
C
#ifndef FLUGKURVE02_H
|
|
#define FLUGKURVE02_H
|
|
|
|
struct Vektor{
|
|
float x;
|
|
float y;
|
|
};
|
|
|
|
struct Koerper{
|
|
float masse;
|
|
Vektor position;
|
|
Vektor geschwindigkeit;
|
|
};
|
|
|
|
Vektor mulVektor(const Vektor &vektor, const float &skalar);
|
|
Vektor addVektor(const Vektor &vektor1, const Vektor &vektor2);
|
|
Koerper bewegeKoerper(const Koerper &koerper, const Vektor &gesamtkraft, const float &dt);
|
|
void ausgabeKoerper(const Koerper &koerper);
|
|
#endif |