![]() |
VR-Forces 4.1 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.
|
inline |
default constructor Probably should init real and imag part to NaN as default values, but how?
|
inline |
from rectangular
|
inline |
copy constructor
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Simple unary functions Argument is destination complex number to modify.
References myImagPart, and myRealPart.
|
inline |
References myImagPart, and myRealPart.
| void DtComplex::sqrt | ( | DtComplex * | result | ) | const |
More complex unary functions.
| void DtComplex::pow | ( | DtComplex * | result, |
| int | exponent | ||
| ) | const |
Simple binary functions.
Again, note first argument is destination to be modified.
References myImagPart, and myRealPart.
References myImagPart, and myRealPart.
References myImagPart, and myRealPart.
|
inline |
References myImagPart, and myRealPart.
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 |
|
private |
Referenced by add(), conjugate(), divide(), multiply(), negate(), and subtract().
|
private |
Referenced by add(), conjugate(), divide(), multiply(), negate(), and subtract().