Important: The information in this document is obsolete and should not be used for new development.
PointToPolar
ThePointToPolarfunction 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
ThePointToPolarfunction converts the Cartesian coordinate point (x, y) to the identical polar coordinate point (r, a). The parameters of thePointToPolarfunction are agxPointstructure pointerxyand agxPolarstructure pointerra.If both pointers point to the same location, the source
gxPointstructure will be converted to agxPolarstructure and will replace thegxPointstructure.SEE ALSO
ThegxPolarstructure is described in the section "Constants and Data Types" beginning on page 8-35. ThePolarToPointfunction converts a point in polar coordinates to the identical point in Cartesian coordinates. ThePolarToPointfunction is described in the previous section.