API

ComplexValues.PolarMethod
Polar(radius::Real, azimuth::Real)

Construct a polar value with the given radius and angle.

source
ComplexValues.SphericalMethod
Spherical(latitude, azimuth)

Construct a spherical representation with given latitude in [-π/2,π/2] and azimuth.

source
ComplexValues.S2coordMethod
S2coord(u::Spherical)

Convert the spherical value to a 3-vector of coordinates on the unit sphere.

source
ComplexValues.real_typeMethod
real_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
source