GammaLib 2.2.0.dev
Loading...
Searching...
No Matches
GCOSTools.hpp
Go to the documentation of this file.
1/***************************************************************************
2 * GCOSTools.hpp - COSI tools *
3 * ----------------------------------------------------------------------- *
4 * copyright (C) 2026 by Juergen Knoedlseder *
5 * ----------------------------------------------------------------------- *
6 * *
7 * This program is free software: you can redistribute it and/or modify *
8 * it under the terms of the GNU General Public License as published by *
9 * the Free Software Foundation, either version 3 of the License, or *
10 * (at your option) any later version. *
11 * *
12 * This program is distributed in the hope that it will be useful, *
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
15 * GNU General Public License for more details. *
16 * *
17 * You should have received a copy of the GNU General Public License *
18 * along with this program. If not, see <http://www.gnu.org/licenses/>. *
19 * *
20 ***************************************************************************/
21/**
22 * @file GCOSTools.hpp
23 * @brief Definition of COSI tools
24 * @author Juergen Knoedlseder
25 */
26
27#ifndef GCOSTOOLS_HPP
28#define GCOSTOOLS_HPP
29
30/* __ Includes ___________________________________________________________ */
31#include "GTime.hpp"
32
33/* __ Forward declarations _______________________________________________ */
34
35/* __ Namespaces _________________________________________________________ */
36
37/* __ Constants __________________________________________________________ */
38
39/* __ Prototypes _________________________________________________________ */
40namespace gammalib {
41 GTime cos_time(const double& seconds);
42 double cos_seconds(const GTime& time);
43}
44
45#endif /* GCOSTOOLS_HPP */
Time class interface definition.
Time class.
Definition GTime.hpp:55
double cos_seconds(const GTime &time)
Convert GammaLib time to COSI seconds.
Definition GCOSTools.cpp:71
GTime cos_time(const double &seconds)
Convert COSI seconds to GammaLib time.
Definition GCOSTools.cpp:49