diff options
author | lecoanet | 2002-05-27 14:54:38 +0000 |
---|---|---|
committer | lecoanet | 2002-05-27 14:54:38 +0000 |
commit | 58b98bf047ea5d25e0394fe362e01a88365d449b (patch) | |
tree | 334042314599cef22648219f38a7799f63aef4a0 /generic | |
parent | 4bdfe0ad0186a446e2bc346e2075e69d748cf623 (diff) | |
download | tkzinc-58b98bf047ea5d25e0394fe362e01a88365d449b.zip tkzinc-58b98bf047ea5d25e0394fe362e01a88365d449b.tar.gz tkzinc-58b98bf047ea5d25e0394fe362e01a88365d449b.tar.bz2 tkzinc-58b98bf047ea5d25e0394fe362e01a88365d449b.tar.xz |
* (PointPolarToCartesian): Correction du calcul de l'angle du guideur.
Diffstat (limited to 'generic')
-rw-r--r-- | generic/Geo.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/Geo.c b/generic/Geo.c index 48471d3..085ff87 100644 --- a/generic/Geo.c +++ b/generic/Geo.c @@ -1200,8 +1200,8 @@ PointPolarToCartesian(ZnReal heading, ZnReal to_angle; /* Compute angle in trigonometric system */ - to_angle = DegreesToRadian(theta) + heading - M_PI_2; - /* to_angle = heading - DegreesToRadian(theta);*/ + /* to_angle = DegreesToRadian(theta) + heading - M_PI_2;*/ + to_angle = heading - DegreesToRadian(theta) - M_PI_2; /* Compute cartesian coordinates */ *delta_x = rho * cos(to_angle); *delta_y = rho * sin(to_angle); |