PostGIS  2.2.7dev-r@@SVN_REVISION@@
box2d.c
Go to the documentation of this file.
1 #include <stdio.h>
2 #include <stdlib.h>
3 #include <string.h>
4 
5 #include "liblwgeom_internal.h"
6 
7 #ifndef EPSILON
8 #define EPSILON 1.0E-06
9 #endif
10 #ifndef FPeq
11 #define FPeq(A,B) (fabs((A) - (B)) <= EPSILON)
12 #endif
13 
14 
15 
16 GBOX *
17 box2d_clone(const GBOX *in)
18 {
19  GBOX *ret = lwalloc(sizeof(GBOX));
20  memcpy(ret, in, sizeof(GBOX));
21  return ret;
22 }
GBOX * box2d_clone(const GBOX *in)
Definition: box2d.c:17
void * lwalloc(size_t size)
Definition: lwutil.c:199