Important: The information in this document is obsolete and should not be used for new development.
PolarToPoint
You can use thePolarToPointfunction 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
ThePolarToPointfunction converts the polar coordinate point (r, a) to the identical Cartesian coordinate point (x, y). The parameters of thePolarToPointfunction are thegxPolarstructure pointerraand agxPointstructure pointerxy.If both pointers point to the same location, the source
gxPolarstructure will be converted to agxPointstructure and will replace thegxPolarstructure.SEE ALSO
ThegxPolarstructure 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. ThePointToPolarfunction converts a point in Cartesian coordinates to the identical point in polar coordinates. ThePointToPolarfunction is described next.