KrausType.h
1//-*-C++-*-
2/***************************************************************************
3 *
4 * Copyright (C) 2016 by Willem van Straten
5 * Licensed under the Academic Free License version 2.1
6 *
7 ***************************************************************************/
8
9// psrchive/Util/genutil/KrausType.h
10
11#ifndef __KrausType_H
12#define __KrausType_H
13
14#include "Directional.h"
15
17
23
24#define KRAUS_TYPE_USE_SPHERICAL_TRIGONOMETRY 1
25
26class KrausType : public Directional
27{
28public:
29
31 std::string get_name () const;
32
33#if KRAUS_TYPE_USE_SPHERICAL_TRIGONOMETRY
35 double get_vertical () const;
36#endif
37
38protected:
39
41 Matrix<3,3,double> get_basis (const Vector<3,double>& from_source) const;
42
43#if KRAUS_TYPE_USE_SPHERICAL_TRIGONOMETRY
45 void build () const;
46#endif
47
48};
49
50#endif
Directional antennae.
Definition Directional.h:18
virtual double get_vertical() const
Get the counter-clockwise angle from north toward zenith in radians.
Definition Directional.C:22
void build() const
Lazily evaluate.
Definition Directional.C:33
virtual std::string get_name() const =0
Get the name of the mount.

Generated using doxygen 1.14.0