~drizzle-trunk/drizzle/development

1 by brian
clean slate
1
/* Copyright (C) 2002, 2004 MySQL AB & Ramil Kalimullin
2
   
3
   This program is free software; you can redistribute it and/or modify
4
   it under the terms of the GNU General Public License as published by
5
   the Free Software Foundation; version 2 of the License.
6
   
7
   This program is distributed in the hope that it will be useful,
8
   but WITHOUT ANY WARRANTY; without even the implied warranty of
9
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
10
   GNU General Public License for more details.
11
   
12
   You should have received a copy of the GNU General Public License
13
   along with this program; if not, write to the Free Software
14
   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA */
15
16
#ifndef _rt_mbr_h
17
#define _rt_mbr_h
18
19
#ifdef HAVE_RTREE_KEYS
20
21
int rtree_key_cmp(HA_KEYSEG *keyseg, uchar *a, uchar *b, uint key_length,
22
                  uint nextflag);
23
int rtree_combine_rect(HA_KEYSEG *keyseg,uchar *, uchar *, uchar*, 
24
                       uint key_length);
25
double rtree_rect_volume(HA_KEYSEG *keyseg, uchar*, uint key_length);
26
int rtree_d_mbr(HA_KEYSEG *keyseg, uchar *a, uint key_length, double *res);
27
double rtree_overlapping_area(HA_KEYSEG *keyseg, uchar *a, uchar *b, 
28
                              uint key_length);
29
double rtree_area_increase(HA_KEYSEG *keyseg, uchar *a, uchar *b, 
30
                           uint key_length, double *ab_area);
31
double rtree_perimeter_increase(HA_KEYSEG *keyseg, uchar* a, uchar* b, 
32
				uint key_length, double *ab_perim);
33
int rtree_page_mbr(MI_INFO *info, HA_KEYSEG *keyseg, uchar *page_buf, 
34
                   uchar* c, uint key_length);
35
#endif /*HAVE_RTREE_KEYS*/
36
#endif /* _rt_mbr_h */