Klasse Komplex
|
#include <komplex.h>
Public Member Functions | |
Komplex () | |
Komplex (double re, double im=0.0) | |
Komplex (const Komplex &org) | |
virtual | ~Komplex () |
Komplex & | operator= (const Komplex &rhs) |
Assignment operator. More... | |
double | Get_re () const |
void | Set_re (double val) |
double | Get_im () const |
void | Set_im (double val) |
Komplex & | operator+= (const Komplex &rhs) |
Komplex | operator+ (const Komplex &rhs) const |
double | abs () const |
Komplex::Komplex | ( | ) |
Default constructor
Definition at line 7 of file komplex.cpp.
Komplex::Komplex | ( | double | re, |
double | im = 0.0 |
||
) |
Parameter constructor
[in] | re | Realteil |
[in] | im | Imaginaerteil (default value: 0.0) |
Definition at line 13 of file komplex.cpp.
Komplex::Komplex | ( | const Komplex & | org | ) |
|
virtual |
Default destructor
Definition at line 25 of file komplex.cpp.
|
inline |
|
inline |
|
inline |
Addiert die aktuelle Instanz mit einer zweiten komplexen Zahl
[in] | rhs | zweite komplexe Zahl |
*this
+ rhs
Definition at line 54 of file komplex.cpp.
Addiert zur aktuellen Instanz eine zweiten komplexen Zahl
[in] | rhs | zweite komplexe Zahl |
Definition at line 40 of file komplex.cpp.
Assignment operator.
[in] | rhs | Instance that is assigned to the members. |
Definition at line 30 of file komplex.cpp.
|
inline |
|
inline |