fors_point.h

00001 /* $Id: fors_point.h,v 1.2 2007/08/28 13:28:30 jmlarsen Exp $
00002  *
00003  * This file is part of the FORS Library
00004  * Copyright (C) 2002-2006 European Southern Observatory
00005  *
00006  * This program is free software; you can redistribute it and/or modify
00007  * it under the terms of the GNU General Public License as published by
00008  * the Free Software Foundation; either version 2 of the License, or
00009  * (at your option) any later version.
00010  *
00011  * This program is distributed in the hope that it will be useful,
00012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014  * GNU General Public License for more details.
00015  *
00016  * You should have received a copy of the GNU General Public License
00017  * along with this program; if not, write to the Free Software
00018  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
00019  */
00020 
00021 /*
00022  * $Author: jmlarsen $
00023  * $Date: 2007/08/28 13:28:30 $
00024  * $Revision: 1.2 $
00025  * $Name:  $
00026  */
00027 
00028 #ifndef FORS_POINT_H
00029 #define FORS_POINT_H
00030 
00031 #include <cpl.h>
00032 
00033 #include <stdbool.h>
00034 
00035 CPL_BEGIN_DECLS
00036 
00037 typedef struct _fors_point
00038 {
00039     double x, y;
00040 
00041 } fors_point;
00042 
00043 #undef LIST_ELEM
00044 #define LIST_ELEM fors_point
00045 #include <list.h>
00046 
00047 fors_point *fors_point_new(double x, double y);
00048 fors_point *fors_point_duplicate(const fors_point *p);
00049 void fors_point_delete(fors_point **point);
00050 void fors_point_delete_list(fors_point ***point);
00051 void fors_point_print(const fors_point *s);
00052 bool fors_point_equal(const fors_point *p,
00053               const fors_point *q);
00054 
00055 double fors_point_distsq(const fors_point *p,
00056              const fors_point *q);
00057 
00058 
00059 CPL_END_DECLS
00060 
00061 #endif

Generated on Wed Sep 10 07:31:52 2008 for FORS Pipeline Reference Manual by  doxygen 1.4.6