MFC-Simulator/TestSimulator/Complex.h

22 lines
370 B
C
Raw Normal View History

2023-02-03 03:07:52 +01:00
#pragma once
class CComplex
{
public:
double m_dReal; //<2F>Ƽƹ곡
double m_dImag; //<2F>ƼƵ곡
public:
//<2F>غc<D8BA>B<EFBFBD>Ѻc<D1BA>l
CComplex ();
CComplex (double, double);
~CComplex ();
//<2F><><EFBFBD><EFBFBD><EFBFBD>B<EFBFBD>
CComplex operator+ (const CComplex &);
CComplex operator- (const CComplex &);
CComplex operator* (const CComplex &);
//<2F>p<EFBFBD><70><EFBFBD>ƼƮ<C6BC><C6AE>T<EFBFBD>j<EFBFBD>p
double ComputeAmplitude () const;
};