DP3
Direction.h
Go to the documentation of this file.
1 // Copyright (C) 2020 ASTRON (Netherlands Institute for Radio Astronomy)
2 // SPDX-License-Identifier: GPL-3.0-or-later
3 
4 #ifndef DP3_BASE_DIRECTION_H_
5 #define DP3_BASE_DIRECTION_H_
6 
7 #include <cstring>
8 
9 namespace dp3 {
10 namespace base {
11 
14 
15 struct Direction {
16  constexpr Direction() : ra(0.0), dec(0.0) {}
17 
24  constexpr Direction(double _ra, double _dec) : ra(_ra), dec(_dec) {}
25 
26  double ra;
27  double dec;
28 };
29 
31 
32 } // namespace base
33 } // namespace dp3
34 
35 #endif // DP3_BASE_DIRECTION_H_
This file has generic helper routines for testing steps.
Definition: AntennaConfig.h:53
A direction on the celestial sphere.
Definition: Direction.h:15
constexpr Direction(double _ra, double _dec)
Construct a new Direction object.
Definition: Direction.h:24
constexpr Direction()
Definition: Direction.h:16
double ra
Right ascension in radians.
Definition: Direction.h:26
double dec
Declination in radians.
Definition: Direction.h:27