Closed hurak closed 2 weeks ago
I can reproduce that. The comment was added to the README file with commit 529d950 which is 6 years ago during release 0.3.2 but even in that commit I don't see a convenience constructor in the code. There is a convenience converter, though:
julia> convert(Polar, SVector(1,2))
Polar(r=2.23606797749979, θ=1.1071487177940904 rad)
There's now a PR (#84) that adds this functionality.
It is stated in the main README that
I get an error when trying to run this snippet of code:
CoordinateTransformations v0.6.2 StaticArrays v1.5.4 Julia v1.8.0-rc4