v0.3.0-dev-18 #459

Merged
altavir merged 64 commits from dev into master 2022-02-13 17:50:34 +03:00
Showing only changes of commit 53ab8334dd - Show all commits

View File

@ -41,7 +41,7 @@ public val Complex.r: Double
* An angle between vector represented by complex number and X axis.
*/
public val Complex.theta: Double
get() = atan(im / re)
get() = atan2(im, re)
private val PI_DIV_2 = Complex(PI / 2, 0)