Complex.fromImaginaryMixedFraction constructor

Complex.fromImaginaryMixedFraction(
  1. MixedFraction imaginary
)

Creates a complex number having only the imaginary part, which is expressed as a MixedFraction. The real part is set to 0.

Implementation

Complex.fromImaginaryMixedFraction(MixedFraction imaginary)
    : real = 0,
      imaginary = imaginary.toDouble();