upgrading copyright year from 2015 to 2016
[hkl.git] / hkl / hkl-interval-private.h
blobb531910f316485432ba497289f05fff50ecdaa30
1 /* This file is part of the hkl library.
3 * The hkl library 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, either version 3 of the License, or
6 * (at your option) any later version.
8 * The hkl library is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
13 * You should have received a copy of the GNU General Public License
14 * along with the hkl library. If not, see <http://www.gnu.org/licenses/>.
16 * Copyright (C) 2003-2016 Synchrotron SOLEIL
17 * L'Orme des Merisiers Saint-Aubin
18 * BP 48 91192 GIF-sur-YVETTE CEDEX
20 * Authors: Picca Frédéric-Emmanuel <picca@synchrotron-soleil.fr>
22 #ifndef _HKL_INTERVAL_PRIVATE_H
23 #define _HKL_INTERVAL_PRIVATE_H
25 #include "hkl.h" // for G_BEGIN_DECLS, etc
27 G_BEGIN_DECLS
29 typedef struct _HklInterval HklInterval;
31 struct _HklInterval
33 double min;
34 double max;
37 extern HklInterval* hkl_interval_dup(const HklInterval *self);
39 extern void hkl_interval_free(HklInterval *self);
41 extern int hkl_interval_cmp(const HklInterval *self, const HklInterval *interval);
43 extern void hkl_interval_plus_interval(HklInterval *self, const HklInterval *interval);
45 extern void hkl_interval_plus_double(HklInterval *self, double const d);
47 extern void hkl_interval_minus_interval(HklInterval *self, const HklInterval *interval);
49 extern void hkl_interval_minus_double(HklInterval *self, double const d);
51 extern void hkl_interval_times_interval(HklInterval *self, const HklInterval *interval);
53 extern void hkl_interval_times_double(HklInterval *self, double const d);
55 extern void hkl_interval_divides_double(HklInterval *self, double const d);
57 extern int hkl_interval_contain_zero(const HklInterval *self);
59 extern void hkl_interval_cos(HklInterval *self);
61 extern void hkl_interval_acos(HklInterval *self);
63 extern void hkl_interval_sin(HklInterval *self);
65 extern void hkl_interval_asin(HklInterval *self);
67 extern void hkl_interval_tan(HklInterval *self);
69 extern void hkl_interval_atan(HklInterval *self);
71 extern double hkl_interval_length(const HklInterval *self);
73 extern void hkl_interval_angle_restrict_symm(HklInterval *self);
75 G_END_DECLS
77 #endif