Main Content

uv2phitheta

Convert u/v coordinates to phi/theta angles

Description

PhiTheta = uv2phitheta(UV) converts the u/v space coordinates to their corresponding phi/theta angle pairs.

example

Examples

collapse all

Find the corresponding φ/θ representation for u = 0.5 and v = 0.

PhiTheta = uv2phitheta([0.5; 0])
PhiTheta = 2×1

         0
   30.0000

Input Arguments

collapse all

Angle in u/v space, specified as a two-row matrix. Each column of the matrix represents a pair of coordinates in the form [u; v]. Each coordinate is between –1 and 1, inclusive. Also, each pair must satisfy u2 + v2≤ 1.

Data Types: double

Output Arguments

collapse all

Phi and theta angles, returned as a two-row matrix. Each column of the matrix represents an angle in degrees, in the form [phi; theta]. The matrix dimensions of PhiTheta are the same as those of UV.

More About

collapse all

Extended Capabilities

expand all

Version History

Introduced in R2012a