Kstars

healpix.h
1/* -----------------------------------------------------------------------------
2
3 SPDX-FileCopyrightText: 1997-2016 Martin Reinecke,
4 SPDX-FileCopyrightText: 1997-2016 Krzysztof M. Gorski
5 SPDX-FileCopyrightText: 1997-2016 Eric Hivon
6 SPDX-FileCopyrightText: Benjamin D. Wandelt
7 SPDX-FileCopyrightText: Anthony J. Banday,
8 SPDX-FileCopyrightText: Matthias Bartelmann,
9 SPDX-FileCopyrightText: Reza Ansari
10 SPDX-FileCopyrightText: Kenneth M. Ganga
11
12 This file is part of HEALPix.
13
14 Based on work by Pavel Mraz from SkyTechX.
15
16 Modified by Jasem Mutlaq for KStars:
17 SPDX-FileCopyrightText: Jasem Mutlaq <mutlaqja@ikarustech.com>
18
19 SPDX-License-Identifier: GPL-2.0-or-later
20
21 For more information about HEALPix see https://healpix.sourceforge.io/
22
23 ---------------------------------------------------------------------------*/
24
25#pragma once
26
27#include "hips.h"
28
29#include <QVector3D>
30
31class SkyPoint;
32
33class HEALPix
34{
35public:
36 HEALPix() = default;
37
38 void getCornerPoints(int level, int pix, SkyPoint *skyCoords);
39 void neighbours(int nside, qint32 ipix, int *result);
40 int getPix(int level, double ra, double dec);
41 void getPixChilds(int pix, int *childs);
42
43private:
44 void nest2xyf(int nside, int pix, int *ix, int *iy, int *face_num);
45 QVector3D toVec3(double fx, double fy, int face);
46 void boundaries(qint32 nside, qint32 pix, int step, QVector3D *out);
47 int ang2pix_nest_z_phi(qint32 nside_, double z, double phi);
48 void xyz2sph(const QVector3D &vec, double &l, double &b);
49};
50
The sky coordinates of a point in the sky.
Definition skypoint.h:45
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:19:03 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.