Important: The information in this document is obsolete and should not be used for new development.
PolarToPointYou can use the
PolarToPointfunction to convert a point in polar coordinates to the identical point in Cartesian coordinates.
gxPoint *PolarToPoint(const gxPolar *ra, gxPoint *xy);
- A pointer to the point in polar coordinates.
- 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
PolarToPointfunction converts the polar coordinate point (r, a) to the identical Cartesian coordinate point (x, y). The parameters of the
PolarToPointfunction are the
If both pointers point to the same location, the source
gxPolarstructure will be converted to a
gxPointstructure and will replace the
gxPolarstructure 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. The
PointToPolarfunction converts a point in Cartesian coordinates to the identical point in polar coordinates. The
PointToPolarfunction is described next.