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