#include "ComplexT.h" ComplexT::ComplexT() { real = 0; imag = 0; return; } void ComplexT::Real(float r){ real = r; return; } void ComplexT::Imag(float i){ imag = i; return; } void ComplexT::Both(float r, float i){ real = r; imag = i; return; } float ComplexT::Real(void) const{ return real; } float ComplexT::Imag(void) const{ return imag; } ComplexT ComplexT::operator +(const ComplexT & other) const{ ComplexT rv; rv.real = real + other.real; rv.imag = imag + other.imag; return rv; }