PolarComplex class final

A wrapper class, returned by a Complex object, that represents a complex number in polar coordinates.

Implemented types

Constructors

PolarComplex({required double r, required double phiRadians, required double phiDegrees})
The angle r is required both in radians (phiRadians) and degrees. (phiDegrees).
const

Properties

hashCode int
The hash code for this object.
no setteroverride
phiDegrees double
The 'phi' angle expressed in degrees.
final
phiRadians double
The 'phi' angle expressed in radians.
final
r double
The absolute value/modulus of the complex number.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

compareTo(PolarComplex other) int
Compares this object to another object.
override
copyWith({double? r, double? phiRadians, double? phiDegrees}) PolarComplex
Creates a deep copy of this object and replaces (if non-null) the given values with the old ones.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
override