Complex.polar constructor

Complex.polar([
  1. double r = 0.0,
  2. double phase = 0.0
])

Implementation

factory Complex.polar([double r = 0.0, double phase = 0.0]) {
  return Cartesian(r * math.cos(phase), r * math.sin(phase));
}