Q3Point3D_ToSpherical
You can use theQ3Point3D_ToSphericalfunction to convert a three-dimensional point from Cartesian form to spherical form.
TQ3SphericalPoint *Q3Point3D_ToSpherical ( const TQ3Point3D *point3D, TQ3SphericalPoint *result);
point3D- A three-dimensional point.
result- On exit, a spherical point.
DESCRIPTION
TheQ3Point3D_ToSphericalfunction returns, as its function result and in theresultparameter, a spherical point that is the same point as the three-dimensional point specified by thepoint3Dparameter.