aboutsummaryrefslogtreecommitdiff
path: root/generic/Geo.h
diff options
context:
space:
mode:
authorlecoanet2005-10-19 10:58:11 +0000
committerlecoanet2005-10-19 10:58:11 +0000
commit418a729b9bdd7c899c444a889b0064fbc998f2a2 (patch)
tree2fc1fa329978350e24d73dff94c168d74d18b78f /generic/Geo.h
parente3dba13cb46272306b626406e2ca5493e6683dc0 (diff)
downloadtkzinc-418a729b9bdd7c899c444a889b0064fbc998f2a2.zip
tkzinc-418a729b9bdd7c899c444a889b0064fbc998f2a2.tar.gz
tkzinc-418a729b9bdd7c899c444a889b0064fbc998f2a2.tar.bz2
tkzinc-418a729b9bdd7c899c444a889b0064fbc998f2a2.tar.xz
Added the function ZnPointCartesianToPolar that is the reciprocal of
ZnPointPolarToCartesian.
Diffstat (limited to 'generic/Geo.h')
-rw-r--r--generic/Geo.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/generic/Geo.h b/generic/Geo.h
index 08c5892..36205aa 100644
--- a/generic/Geo.h
+++ b/generic/Geo.h
@@ -269,6 +269,13 @@ ZnPointInAngle(int start_angle,
ZnPoint *p);
void
+ZnPointCartesianToPolar(ZnReal heading,
+ ZnReal *rho,
+ ZnReal *theta,
+ ZnReal delta_x,
+ ZnReal delta_y);
+
+void
ZnPointPolarToCartesian(ZnReal heading,
ZnReal rho,
ZnReal theta,