Important: The information in this document is obsolete and should not be used for new development.
PointToPolar
ThePointToPolar
function converts a point in Cartesian coordinates to the identical point in polar coordinates.
gxPolar *PointToPolar(const gxPoint *xy, gxPolar *ra);
xy
- A pointer to the Cartesian coordinate.
ra
- A pointer to the destination of the resulting polar coordinate.
- function result
- The pointer passed in
ra.
DESCRIPTION
ThePointToPolar
function converts the Cartesian coordinate point (x, y) to the identical polar coordinate point (r, a). The parameters of thePointToPolar
function are agxPoint
structure pointerxy
and agxPolar
structure pointerra
.If both pointers point to the same location, the source
gxPoint
structure will be converted to agxPolar
structure and will replace thegxPoint
structure.SEE ALSO
ThegxPolar
structure is described in the section "Constants and Data Types" beginning on page 8-35. ThePolarToPoint
function converts a point in polar coordinates to the identical point in Cartesian coordinates. ThePolarToPoint
function is described in the previous section.