Package edu.sc.seis.seisFile.sac
Class Complex
java.lang.Object
edu.sc.seis.seisFile.sac.Complex
- Direct Known Subclasses:
PoleZero
public class Complex
extends java.lang.Object
-
Field Summary
-
Constructor Summary
Constructors Constructor Description Complex(double real, double imaginary) -
Method Summary
Modifier and Type Method Description static Complexadd(double a, Complex b)static Complexadd(Complex a, double b)static Complexadd(Complex a, Complex b)Complexconjg()static Complexdiv(double a, Complex b)static Complexdiv(Complex a, double b)static Complexdiv(Complex a, Complex b)booleanequals(java.lang.Object obj)doublegetImaginary()doublegetReal()inthashCode()doublemag()static Complexmul(double a, Complex b)static Complexmul(Complex a, double b)static Complexmul(Complex a, Complex b)static Complexsub(double a, Complex b)static Complexsub(Complex a, double b)static Complexsub(Complex a, Complex b)Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
real
protected double real -
imaginary
protected double imaginary
-
-
Constructor Details
-
Complex
public Complex(double real, double imaginary)
-
-
Method Details
-
getReal
public double getReal() -
getImaginary
public double getImaginary() -
mag
public final double mag() -
conjg
-
add
-
add
-
add
-
sub
-
sub
-
sub
-
mul
-
mul
-
mul
-
div
-
div
-
div
-
equals
public boolean equals(java.lang.Object obj)- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()- Overrides:
hashCodein classjava.lang.Object
-