Important: The information in this document is obsolete and should not be used for new development.
PolarToPoint
You can use thePolarToPoint
function to convert a point in polar coordinates to the identical point in Cartesian coordinates.
gxPoint *PolarToPoint(const gxPolar *ra, gxPoint *xy);
ra
- A pointer to the point in polar coordinates.
xy
- A pointer to the destination of the resulting point in Cartesian coordinates.
- function result
- A pointer to the converted point (also a pointer to the
xy parameter).
DESCRIPTION
ThePolarToPoint
function converts the polar coordinate point (r, a) to the identical Cartesian coordinate point (x, y). The parameters of thePolarToPoint
function are thegxPolar
structure pointerra
and agxPoint
structure pointerxy
.If both pointers point to the same location, the source
gxPolar
structure will be converted to agxPoint
structure and will replace thegxPolar
structure.SEE ALSO
ThegxPolar
structure is described in the section "Constants and Data Types" beginning on page 8-35. Polar coordinate to Cartesian coordinate conversions are discussed in the section "Cartesian and Polar Coordinate Conversion" beginning on page 8-10. ThePointToPolar
function converts a point in Cartesian coordinates to the identical point in polar coordinates. ThePointToPolar
function is described next.