| Package | org.un.flex.utils.geom |
| Class | public class ComplexNumber |
| Implements | IPoint |
| Property | Defined by | ||
|---|---|---|---|
| imag : Number
Returns the imaginary part of the complex number.
| ComplexNumber | ||
| real : Number
Returns the real part of the complex number.
| ComplexNumber | ||
| Property | Defined by | ||
|---|---|---|---|
| _imag : Number The imaginary part of the complex number.
| ComplexNumber | ||
| _real : Number The real part of the complex number.
| ComplexNumber | ||
| Method | Defined by | ||
|---|---|---|---|
|
ComplexNumber(r:Number = 0, i:Number = 0)
Creates a complex number with the given real and imaginary part.
| ComplexNumber | ||
|
addC(v:ComplexNumber):void
Adds a complex number to this complex number.
| ComplexNumber | ||
|
addR(x:Number):void
Adds a real number to the complex number.
| ComplexNumber | ||
|
clone():Object
Creates a deep copy of the Point.
| ComplexNumber | ||
|
conjugate():void
Conjugates the complex number (negates the imaginary part.)
| ComplexNumber | ||
|
dist(z:ComplexNumber):Number
Return the distance from
this to
a complex number z. | ComplexNumber | ||
|
dist2(z:ComplexNumber):Number
Return the squared distance from
this to
a complex number z. | ComplexNumber | ||
|
divideC(z:ComplexNumber):void
Divides the complex number by another complex number.
| ComplexNumber | ||
|
divideF(r:Number):void
Divides the complex number by a real number.
| ComplexNumber | ||
|
equals(z:Object):Boolean
Returns true if the parameter object is equals to
this and false otherwise.
| ComplexNumber | ||
|
getRad():Number
Returns the radiant of a complex number.
| ComplexNumber | ||
|
Returns the reciprocal of
this. | ComplexNumber | ||
|
getRotation(t:Number):ComplexNumber
[static]
Returns
exp(it). | ComplexNumber | ||
|
multiplyC(v:ComplexNumber):void
Multiplies a complex number with this complex number.
| ComplexNumber | ||
|
multiplyF(r:Number):void
Multiplies a real number with this complex number.
| ComplexNumber | ||
|
norm():Number
Return the norm of the complex number.
| ComplexNumber | ||
|
norm2():Number
Return the squared norm of the complex number.
| ComplexNumber | ||
|
normalize():void
Normalizes the complex number so that it's length is 1.
| ComplexNumber | ||
|
reciprocal():void
Sets this complex number to its reciprocal.
| ComplexNumber | ||
|
Sets this point to the given point.
| ComplexNumber | ||
|
subtractC(v:ComplexNumber):void
Subtracts a complex number from this complex number.
| ComplexNumber | ||
|
toArray():Array
Returns an array of to doubles,
the first is the real part, the second the imaginary part.
| ComplexNumber | ||
|
toString():String
Returns a String representation of the point.
| ComplexNumber | ||
| Method | Defined by | ||
|---|---|---|---|
|
scalarProduct(z:ComplexNumber):Number
Return the euclidian scalar product of the complex number and another complex number.
| ComplexNumber | ||
| _imag | property |
protected var _imag:NumberThe imaginary part of the complex number.
| imag | property |
imag:Number [read-write]Returns the imaginary part of the complex number.
Implementation public function get imag():Number
public function set imag(value:Number):void
| _real | property |
protected var _real:NumberThe real part of the complex number.
| real | property |
real:Number [read-write]Returns the real part of the complex number.
Implementation public function get real():Number
public function set real(value:Number):void
| ComplexNumber | () | constructor |
public function ComplexNumber(r:Number = 0, i:Number = 0)Creates a complex number with the given real and imaginary part.
Parametersr:Number (default = 0) — The real part of the complex number.
|
|
i:Number (default = 0) — The imaginary part of the complex number.
|
| addC | () | method |
public function addC(v:ComplexNumber):voidAdds a complex number to this complex number.
Parametersv:ComplexNumber — The complex number to be added.
|
| addR | () | method |
public function addR(x:Number):voidAdds a real number to the complex number.
Parametersx:Number — The real number to be added.
|
| clone | () | method |
public function clone():ObjectCreates a deep copy of the Point.
ReturnsObject — A deep copy of the Point.
|
| conjugate | () | method |
public function conjugate():voidConjugates the complex number (negates the imaginary part.)
| dist | () | method |
public function dist(z:ComplexNumber):Number
Return the distance from this to
a complex number z.
z:ComplexNumber — Another complex number.
|
Number — The distance from this complex number to z.
|
| dist2 | () | method |
public function dist2(z:ComplexNumber):Number
Return the squared distance from this to
a complex number z.
z:ComplexNumber — Another complex number.
|
Number — The squared distance from this complex number to z.
|
| divideC | () | method |
public function divideC(z:ComplexNumber):voidDivides the complex number by another complex number.
Parametersz:ComplexNumber — The divisor.
|
| divideF | () | method |
public function divideF(r:Number):voidDivides the complex number by a real number.
Parametersr:Number — The divisor.
|
| equals | () | method |
public function equals(z:Object):BooleanReturns true if the parameter object is equals to this and false otherwise.
Parametersz:Object — Any object.
|
Boolean — True if obj equals this.
|
| getRad | () | method |
public function getRad():NumberReturns the radiant of a complex number.
ReturnsNumber — The radiant of the complex number.
|
| getReciprocal | () | method |
public function getReciprocal():ComplexNumber
Returns the reciprocal of this.
ComplexNumber —
A new complex that is the reciprocal of this.
|
| getRotation | () | method |
public static function getRotation(t:Number):ComplexNumber
Returns exp(it).
t:Number — The angle
|
ComplexNumber —
The complex number exp(it)
|
| multiplyC | () | method |
public function multiplyC(v:ComplexNumber):voidMultiplies a complex number with this complex number.
Parametersv:ComplexNumber — The complex factor.
|
| multiplyF | () | method |
public function multiplyF(r:Number):voidMultiplies a real number with this complex number.
Parametersr:Number — The real factor.
|
| norm | () | method |
public function norm():NumberReturn the norm of the complex number.
ReturnsNumber — The norm of the complex number.
|
| norm2 | () | method |
public function norm2():NumberReturn the squared norm of the complex number.
ReturnsNumber — The squared norm of the complex number.
|
| normalize | () | method |
public function normalize():voidNormalizes the complex number so that it's length is 1.
| reciprocal | () | method |
public function reciprocal():voidSets this complex number to its reciprocal.
| scalarProduct | () | method |
protected function scalarProduct(z:ComplexNumber):NumberReturn the euclidian scalar product of the complex number and another complex number.
Parametersz:ComplexNumber — Another complex number.
|
Number — The euclidian scalar product of the two complex numbers.
|
| setTo | () | method |
public function setTo(p:IPoint):voidSets this point to the given point.
Parametersp:IPoint — The new point.
|
| subtractC | () | method |
public function subtractC(v:ComplexNumber):voidSubtracts a complex number from this complex number.
Parametersv:ComplexNumber — The complex number to be subtracted.
|
| toArray | () | method |
public function toArray():ArrayReturns an array of to doubles, the first is the real part, the second the imaginary part.
ReturnsArray — The complex number as array.
|
| toString | () | method |
public function toString():StringReturns a String representation of the point.
ReturnsString — A String in appropriate format.
|