com.pearsoneduc.ip.util
Class Complex
java.lang.Object
|
+--com.pearsoneduc.ip.util.Complex
- public class Complex
- extends java.lang.Object
A simple complex number class.
- Version:
- 1.1 [1999/08/02]
- Author:
- Nick Efford
Field Summary |
float |
im
Imaginary part of number. |
float |
re
Real part of number. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
re
public float re
- Real part of number.
im
public float im
- Imaginary part of number.
Complex
public Complex()
Complex
public Complex(float real,
float imaginary)
getMagnitude
public float getMagnitude()
getPhase
public float getPhase()
setPolar
public void setPolar(double r,
double theta)
toString
public java.lang.String toString()
- Overrides:
- toString in class java.lang.Object
swapWith
public void swapWith(Complex value)