SINFONI Pipeline Reference Manual
2.6.0
sinfoni
sinfo_poly2d.h
1
/*
2
* This file is part of the ESO SINFONI Pipeline
3
* Copyright (C) 2004,2005 European Southern Observatory
4
*
5
* This program is free software; you can redistribute it and/or modify
6
* it under the terms of the GNU General Public License as published by
7
* the Free Software Foundation; either version 2 of the License, or
8
* (at your option) any later version.
9
*
10
* This program is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
* GNU General Public License for more details.
14
*
15
* You should have received a copy of the GNU General Public License
16
* along with this program; if not, write to the Free Software
17
* Foundation, 51 Franklin St, Fifth Floor, Boston, MA 02111-1307 USA
18
*/
19
20
/*---------------------------------------------------------------------------
21
22
File name : sinfo_poly2d.h
23
Author : N. Devillard
24
Created on : 22 Jun 1999
25
Description : 2D polynomial handling
26
27
*--------------------------------------------------------------------------*/
28
29
/*
30
$Id: sinfo_poly2d.h,v 1.4 2007-06-06 07:10:45 amodigli Exp $
31
$Author: amodigli $
32
$Date: 2007-06-06 07:10:45 $
33
$Revision: 1.4 $
34
*/
35
36
#ifndef SINFO_POLY2D_H
37
#define SINFO_POLY2D_H
38
39
/*---------------------------------------------------------------------------
40
Includes
41
---------------------------------------------------------------------------*/
42
#include <stdio.h>
43
#include <stdlib.h>
44
#include <string.h>
45
#include "sinfo_ipow.h"
46
#include "sinfo_msg.h"
47
#include <cpl.h>
48
/*---------------------------------------------------------------------------
49
New types
50
---------------------------------------------------------------------------*/
51
94
struct
_2D_POLY_ {
95
int
nc ;
/* number of coefficients in px, py, c */
96
int
* px ;
/* powers of x */
97
int
* py ;
/* powers of y */
98
double
* c ;
/* polynomial coefficients */
99
} ;
100
101
typedef
struct
_2D_POLY_ poly2d ;
102
103
104
105
/*---------------------------------------------------------------------------
106
Function codes
107
---------------------------------------------------------------------------*/
108
122
double
123
sinfo_poly2d_compute(
124
poly2d * p,
125
double
x,
126
double
y
127
);
128
129
#endif
Generated by
1.8.6