* Compare two complex numbers for equality * @param other - The 2nd complex number operand * @returns true if equal, else false
(other: complex)
| 232 | * @returns true if equal, else false |
| 233 | */ |
| 234 | public equals(other: complex): boolean |
| 235 | { |
| 236 | if (this.real === other.real && this.img === other.img) |
| 237 | { |
| 238 | return true; |
| 239 | } |
| 240 | else |
| 241 | { |
| 242 | return false; |
| 243 | } |
| 244 | } |
| 245 | } |
no outgoing calls
no test coverage detected