operator * method

Complex operator *(
  1. Complex other
)

Performs multiplication. Uses polar form for efficiency: r1*r2 * e^(i(theta1 + theta2))

Implementation

Complex operator *(Complex other) {
  final newModulus = _modulus * other._modulus;
  final newTheta = _theta1 + other._theta1;
  return Complex.polar(newModulus, newTheta);
}