/// <summary> /// Konstruktor mit Double /// </summary> /// <param name="real">Realteil</param> public Complex(double real) { m_Real = new Fraction(real); m_Imaginary = new Fraction(0); }
/// <summary> /// Konstruktor mit Brüchen /// </summary> /// <param name="real">Realteil</param> /// <param name="imag">Imaginärteil</param> public Complex(Fraction real, Fraction imag) { m_Real = real; m_Imaginary = imag; }
/// <summary> /// Konstruktor mit Double /// </summary> /// <param name="real">Realteil</param> /// <param name="imag">Imaginärteil</param> public Complex(double real, double imag) { m_Real = new Fraction(real); m_Imaginary = new Fraction(imag); }
/// <summary> /// Konstruktor mit Integer /// </summary> /// <param name="real">Realteil</param> /// <param name="imag">Imaginärteil</param> public Complex(int real, int imag) { m_Real = new Fraction(real); m_Imaginary = new Fraction(imag); }
/// <summary> /// Kopierkonstruktor /// </summary> /// <param name="original">Originalobjekt</param> public Complex(Complex original) { m_Real = new Fraction(original.Real); m_Imaginary = new Fraction(original.Imaginary); }
/// <summary> /// Konstruktor /// </summary> /// <param name="real">Realteil</param> public Complex(Fraction real) { m_Real = real; m_Imaginary = new Fraction(0); }