API
ComplexValues.Polar
— MethodPolar(z)
Construct a polar representation of z
.
ComplexValues.Polar
— MethodPolar(radius::Real, azimuth::Real)
Construct a polar value with the given radius and angle.
ComplexValues.Spherical
— MethodSpherical(z)
Construct a spherical representation of the value z
.
ComplexValues.Spherical
— MethodSpherical(latitude, azimuth)
Construct a spherical representation with given latitude
in [-π/2,π/2] and azimuth
.
ComplexValues.S2coord
— MethodS2coord(u::Spherical)
Convert the spherical value to a 3-vector of coordinates on the unit sphere.
ComplexValues.real_type
— Methodreal_type(z)
Return the base type of a real or complex float z
, i.e., the type of its real part.
Examples
julia> real_type(1.0)
Float64
julia> real_type(1.0f0 + 2im)
Float32
julia> real_type(Polar(BigFloat(1), 2))
BigFloat