pub unsafe extern "C" fn scoord(
px: *const c_double,
py: *const c_double,
pz: *const c_double,
plat: *mut c_double,
plon: *mut c_double,
pnrm: *mut c_double,
)Expand description
Converts from Cartesian to spherical coordinates (latitude, longitude, radius).
§Arguments
px,py,pz- Input. The coordinates ofpplat- Output. The latitude ofpin the range-PI/2toPI/2, or0ifpnrm = 0.plon- Output. The longitude ofpin the range-PItoPI, or0ifplies on the Z-axis.pnrm- Output. The magnitude (Euclidean norm) ofp.
§Safety
- All pointers must be valid and properly aligned