#include <Include/fg_constants.h>
#include "area.hxx"
+#include "point2d.hxx"
// calc new x, y for a rotation
}
-point2d cart_to_polar_2d(point2d in) {
- point2d result;
- result.dist = sqrt( in.x * in.x + in.y * in.y );
- result.theta = atan2(in.y, in.x);
-
- return(result);
-}
-
-
list < point2d >
batch_cart_to_polar_2d( list < point2d > in_list)
{
last = rad_list.end();
while ( current != last ) {
p = calc_lon_lat(origin_rad, *current);
+ // convert from radians to degress
+ p.lon *= RAD_TO_DEG;
+ p.lat *= RAD_TO_DEG;
// printf("(%.8f, %.8f)\n", p.lon, p.lat);
result_list.push_back(p);
current++;
printf("\n");
*/
- // rotate, transform, and convert points to lon, lat
+ // rotate, transform, and convert points to lon, lat in degrees
result_list = gen_area(origin, heading, tmp_list);
/*
// $Log$
+// Revision 1.2 1998/09/04 23:04:48 curt
+// Beginning of convex hull genereration routine.
+//
// Revision 1.1 1998/09/01 19:34:33 curt
// Initial revision.
//