]> granicus.if.org Git - postgis/commitdiff
Move inline functions for clang compat
authorPaul Ramsey <pramsey@cleverelephant.ca>
Mon, 25 May 2015 17:58:44 +0000 (17:58 +0000)
committerPaul Ramsey <pramsey@cleverelephant.ca>
Mon, 25 May 2015 17:58:44 +0000 (17:58 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@13553 b70326c6-7e19-0410-871a-916f4a2858ee

liblwgeom/measures3d.c
liblwgeom/measures3d.h

index e9ac56b31ce68a190b826133693e7e92f0804ba8..68e074698142f9b534fe66cfe3f7919380f06c97 100644 (file)
 #include "lwgeom_log.h"
 
 
+static inline int
+get_3dvector_from_points(POINT3DZ *p1,POINT3DZ *p2, VECTOR3D *v)
+{
+       v->x=p2->x-p1->x;
+       v->y=p2->y-p1->y;
+       v->z=p2->z-p1->z;
+       
+       return LW_TRUE;
+}
+
+static inline int
+get_3dcross_product(VECTOR3D *v1,VECTOR3D *v2, VECTOR3D *v)
+{
+       v->x=(v1->y*v2->z)-(v1->z*v2->y);
+       v->y=(v1->z*v2->x)-(v1->x*v2->z);
+       v->z=(v1->x*v2->y)-(v1->y*v2->x);
+
+       return LW_TRUE;
+}
+
 
 LWGEOM * 
 lwgeom_closest_line_3d(LWGEOM *lw1, LWGEOM *lw2)
index a90ed92031c4ef0907e8ca8c051820fcbe585415..a13c9e5f76e353a1df32922fd198c3e90ba2b4a8 100644 (file)
@@ -86,24 +86,5 @@ int pt_in_ring_3d(const POINT3DZ *p, const POINTARRAY *ring,PLANE3D *plane);
 Helper functions
 */
 
-inline int
-get_3dvector_from_points(POINT3DZ *p1,POINT3DZ *p2, VECTOR3D *v)
-{
-       v->x=p2->x-p1->x;
-       v->y=p2->y-p1->y;
-       v->z=p2->z-p1->z;
-       
-       return LW_TRUE;
-}
-
-inline int
-get_3dcross_product(VECTOR3D *v1,VECTOR3D *v2, VECTOR3D *v)
-{
-       v->x=(v1->y*v2->z)-(v1->z*v2->y);
-       v->y=(v1->z*v2->x)-(v1->x*v2->z);
-       v->z=(v1->x*v2->y)-(v1->y*v2->x);
-
-       return LW_TRUE;
-}
 
 #endif /* !defined _MEASURES3D_H  */