jwo.utils
Class JWComplex

java.lang.Object
  |
  +--jwo.utils.JWComplex

public class JWComplex
extends Object

Simple class to store complex numbers

Version:
1.8.0, 29th December, 1998
Author:
Jo Wood.

Field Summary
 float imaginary
          Imaginary component of complex number.
 float real
          Real component of complex number.
 
Constructor Summary
JWComplex()
          Initialises complex number to (0,0).
JWComplex(float real)
          Initialises complex number to (real,0).
JWComplex(float real, float imaginary)
          Initialises complex number to (real,imaginary).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

real

public float real
Real component of complex number.


imaginary

public float imaginary
Imaginary component of complex number.

Constructor Detail

JWComplex

public JWComplex()
Initialises complex number to (0,0).


JWComplex

public JWComplex(float real)
Initialises complex number to (real,0).

Parameters:
real - Real component of complex number.

JWComplex

public JWComplex(float real,
                 float imaginary)
Initialises complex number to (real,imaginary).

Parameters:
real - Real component of complex number.
imaginary - Imaginary component of complex number.