![]() |
VR-Forces 4.0.4 Class Documentation
|
This is a very primitive complex number package used only for phcurve. More...
Public Member Functions | |
| DtComplex (void) | |
| default constructor Probably should init real and imag part to NaN as default values, but how? | |
| DtComplex (double realPart, double imagPart) | |
| from rectangular | |
| DtComplex (const DtComplex &orig) | |
| copy constructor | |
| const DtComplex & | operator= (const DtComplex &orig) |
| assignment | |
| double | realPart (void) const |
| double | imagPart (void) const |
| double | magnitude (void) const |
| double | angle (void) const |
| void | conjugate (DtComplex *result) const |
| Simple unary functions Argument is destination complex number to modify. | |
| void | negate (DtComplex *result) const |
| void | sqrt (DtComplex *result) const |
| More complex unary functions. | |
| void | pow (DtComplex *result, int exponent) const |
| void | add (DtComplex *result, const DtComplex &other) const |
| Simple binary functions. | |
| void | subtract (DtComplex *result, const DtComplex &other) const |
| void | multiply (DtComplex *result, const DtComplex &other) const |
| void | divide (DtComplex *result, double denom) const |
| void | divide (DtComplex *result, const DtComplex &other) const |
| void | add (DtComplex *result, const DtComplex &first, const DtComplex &second) const |
| n-ary binary functions | |
| void | add (DtComplex *result, const DtComplex &first, const DtComplex &second, const DtComplex &third) const |
| void | add (DtComplex *result, const DtComplex &first, const DtComplex &second, const DtComplex &third, const DtComplex &fourth) const |
| void | multiply (DtComplex *result, const DtComplex &first, const DtComplex &second) const |
| void | multiply (DtComplex *result, const DtComplex &first, const DtComplex &second, const DtComplex &third) const |
| void | multiply (DtComplex *result, const DtComplex &first, const DtComplex &second, const DtComplex &third, const DtComplex &fourth) const |
Private Attributes | |
| double | myRealPart |
| double | myImagPart |
This is a very primitive complex number package used only for phcurve.
It is not intended as a general utility because it is missing functionality and it is hard to use.
| DtComplex::DtComplex | ( | void | ) | [inline] |
default constructor Probably should init real and imag part to NaN as default values, but how?
| DtComplex::DtComplex | ( | double | realPart, |
| double | imagPart | ||
| ) | [inline] |
from rectangular
| DtComplex::DtComplex | ( | const DtComplex & | orig | ) | [inline] |
copy constructor
| double DtComplex::realPart | ( | void | ) | const [inline] |
| double DtComplex::imagPart | ( | void | ) | const [inline] |
| double DtComplex::magnitude | ( | void | ) | const [inline] |
| double DtComplex::angle | ( | void | ) | const [inline] |
| void DtComplex::conjugate | ( | DtComplex * | result | ) | const [inline] |
Simple unary functions Argument is destination complex number to modify.
References myImagPart, and myRealPart.
| void DtComplex::negate | ( | DtComplex * | result | ) | const [inline] |
References myImagPart, and myRealPart.
| void DtComplex::sqrt | ( | DtComplex * | result | ) | const |
More complex unary functions.
| void DtComplex::pow | ( | DtComplex * | result, |
| int | exponent | ||
| ) | const |
| void DtComplex::add | ( | DtComplex * | result, |
| const DtComplex & | other | ||
| ) | const [inline] |
Simple binary functions.
Again, note first argument is destination to be modified.
References myImagPart, and myRealPart.
| void DtComplex::subtract | ( | DtComplex * | result, |
| const DtComplex & | other | ||
| ) | const [inline] |
References myImagPart, and myRealPart.
| void DtComplex::multiply | ( | DtComplex * | result, |
| const DtComplex & | other | ||
| ) | const [inline] |
References myImagPart, and myRealPart.
| void DtComplex::divide | ( | DtComplex * | result, |
| double | denom | ||
| ) | const [inline] |
References myImagPart, and myRealPart.
| void DtComplex::divide | ( | DtComplex * | result, |
| const DtComplex & | other | ||
| ) | const |
| void DtComplex::add | ( | DtComplex * | result, |
| const DtComplex & | first, | ||
| const DtComplex & | second | ||
| ) | const |
n-ary binary functions
| void DtComplex::add | ( | DtComplex * | result, |
| const DtComplex & | first, | ||
| const DtComplex & | second, | ||
| const DtComplex & | third | ||
| ) | const |
| void DtComplex::add | ( | DtComplex * | result, |
| const DtComplex & | first, | ||
| const DtComplex & | second, | ||
| const DtComplex & | third, | ||
| const DtComplex & | fourth | ||
| ) | const |
| void DtComplex::multiply | ( | DtComplex * | result, |
| const DtComplex & | first, | ||
| const DtComplex & | second | ||
| ) | const |
| void DtComplex::multiply | ( | DtComplex * | result, |
| const DtComplex & | first, | ||
| const DtComplex & | second, | ||
| const DtComplex & | third | ||
| ) | const |
| void DtComplex::multiply | ( | DtComplex * | result, |
| const DtComplex & | first, | ||
| const DtComplex & | second, | ||
| const DtComplex & | third, | ||
| const DtComplex & | fourth | ||
| ) | const |
double DtComplex::myRealPart [private] |
Referenced by add(), conjugate(), divide(), multiply(), negate(), and subtract().
double DtComplex::myImagPart [private] |
Referenced by add(), conjugate(), divide(), multiply(), negate(), and subtract().