PolarComplex class
Object returned by a Complex which represents the 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 angle phi expressed in degrees.
final
- phiRadians → double
-
The angle phi 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 with the given fields replaced with the new values.
-
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