]> granicus.if.org Git - postgis/commitdiff
indentation fixes
authorSandro Santilli <strk@keybit.net>
Wed, 22 Sep 2004 17:13:26 +0000 (17:13 +0000)
committerSandro Santilli <strk@keybit.net>
Wed, 22 Sep 2004 17:13:26 +0000 (17:13 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@885 b70326c6-7e19-0410-871a-916f4a2858ee

lwgeom/lwgeom_api.c

index afdcf6c6f707d0a967801a8e7d11f132b795b6ba..0f6332fccb0ec073e9dcc6e47344be1467d2b21b 100644 (file)
@@ -614,22 +614,23 @@ void getPoint3d_p(POINTARRAY *pa, int n, char *point)
 
 // copies a point from the point array into the parameter point
 // z value (if present is not returned)
-// NOTE: point is a real POINT3D *not* a pointer
-POINT2D getPoint2d(POINTARRAY *pa, int n)
+// NOTE: point is a real POINT2D *not* a pointer
+POINT2D
+getPoint2d(POINTARRAY *pa, int n)
 {
-                POINT2D result;
-                int size;
+       POINT2D result;
+       int size;
 
-                if ( (n<0) || (n>=pa->npoints))
-                {
-                        return result; //error
-                }
+       if ( (n<0) || (n>=pa->npoints))
+       {
+               return result; //error
+       }
 
-                size = pointArray_ptsize(pa);
+       size = pointArray_ptsize(pa);
 
-                       // this does x,y
-                memcpy(&result.x, &pa->serialized_pointlist[size*n],sizeof(double)*2 );
-                return result;
+       // this does x,y
+       memcpy(&result.x, &pa->serialized_pointlist[size*n],sizeof(double)*2 );
+       return result;
 }
 
 // copies a point from the point array into the parameter point