Public Member Functions | |
| TUnitComplex () | |
| TUnitComplex | Square (void) const |
| TUnitComplex | Inverse (void) const |
| TUnitComplex | SquareRoot (void) const |
| TUnitComplex | Normalize (void) const |
| void | GetSinCos (real &sin, real &cos) const |
| real | GetAngle (void) const |
| void | SetFromAngle (const real angle) |
| void | SetFromSinCos (const real sin, const real cos) |
| void | Transform (const TVector2 &PP, TVector2 &QQ) const |
| void | operator+= (const TUnitComplex &cc) |
| TUnitComplex | operator* (const TUnitComplex &cc) const |
| int32 | GetRevs (void) const |
Static Public Member Functions | |
| static TUnitComplex | CreateFromAngle (const real angleDegree) |
Protected Attributes | |
| real | fx |
| real part | |
| real | fy |
| complex part | |
| int32 | fn |
| number of turns | |
Friends | |
| TUnitComplex | operator- (const TUnitComplex &, const TUnitComplex &) |
Represents a complex number of norm one, and also keeps the number of turns.
| TUnitComplex::TUnitComplex | ( | ) |
| static TUnitComplex TUnitComplex::CreateFromAngle | ( | const real | angleDegree | ) | [inline, static] |
| real TUnitComplex::GetAngle | ( | void | ) | const |
| int32 TUnitComplex::GetRevs | ( | void | ) | const [inline] |
| TUnitComplex TUnitComplex::Inverse | ( | void | ) | const |
| TUnitComplex TUnitComplex::Normalize | ( | void | ) | const |
| TUnitComplex TUnitComplex::operator* | ( | const TUnitComplex & | cc | ) | const |
| void TUnitComplex::operator+= | ( | const TUnitComplex & | cc | ) |
| void TUnitComplex::SetFromAngle | ( | const real | angle | ) |
| TUnitComplex TUnitComplex::Square | ( | void | ) | const |
| TUnitComplex TUnitComplex::SquareRoot | ( | void | ) | const |
| TUnitComplex operator- | ( | const TUnitComplex & | , | |
| const TUnitComplex & | ||||
| ) | [friend] |
int32 TUnitComplex::fn [protected] |
number of turns
real TUnitComplex::fx [protected] |
real part
real TUnitComplex::fy [protected] |
complex part
1.6.3