// // File geschwindigkeit2d.cpp #include #include "geschwindigkeit2d.h" using namespace std; Geschwindigkeit2D::Geschwindigkeit2D(float x, float y) : Vektor(2, new float[2]()) { komponenten[0] = x; komponenten[1] = y; } Geschwindigkeit2D::Geschwindigkeit2D(const Geschwindigkeit2D& v) : Vektor(v) { } void Geschwindigkeit2D::ausgabe() { cout << "Aktueller Geschwindigkeitsvektor: "; Vektor::ausgabe(); cout << " Geschwindigkeitsbetrag: " << norm() << endl; }