We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The results of the following function seem wrong to me,
function (::SphericalFromCartesian)(x::AbstractVector) length(x) == 3 || error("Spherical transform takes a 3D coordinate") Spherical(hypot(x[1], x[2], x[3]), atan(x[2], x[1]), atan(x[3], hypot(x[1], x[2]))) end
function (::SphericalFromCartesian)(x::AbstractVector) length(x) == 3 || error("Spherical transform takes a 3D coordinate")
Spherical(hypot(x[1], x[2], x[3]), atan(x[2], x[1]), atan(x[3], hypot(x[1], x[2])))
end
Should the fourth line be changed to this?
function (::SphericalFromCartesian)(x::AbstractVector) length(x) == 3 || error("Spherical transform takes a 3D coordinate") Spherical(hypot(x[1], x[2], x[3]), atan(x[2], x[1]), atan(hypot(x[1], x[2]), x[3])) end
Spherical(hypot(x[1], x[2], x[3]), atan(x[2], x[1]), atan(hypot(x[1], x[2]), x[3]))
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The results of the following function seem wrong to me,
Should the fourth line be changed to this?
The text was updated successfully, but these errors were encountered: