diff options
-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); |