Kstars

gnomonicprojector.cpp
1/*
2 SPDX-FileCopyrightText: 2010 Henry de Valence <hdevalence@gmail.com>
3
4 SPDX-License-Identifier: GPL-2.0-or-later
5*/
6
7#include "gnomonicprojector.h"
8
9GnomonicProjector::GnomonicProjector(const ViewParams &p) : Projector(p)
10{
11 updateClipPoly();
12}
13
14Projector::Projection GnomonicProjector::type() const
15{
16 return Gnomonic;
17}
18
20{
21 return 2 * M_PI;
22}
23
24double GnomonicProjector::projectionK(double x) const
25{
26 return 1.0 / x;
27}
28
29double GnomonicProjector::projectionL(double x) const
30{
31 return atan(x);
32}
33
35{
36 //Don't let things approach infty.
37 return 0.02;
38}
double projectionL(double x) const override
This function handles some of the projection-specific code.
double radius() const override
Get the radius of this projection's sky circle.
Projection type() const override
Return the type of this projection.
double cosMaxFieldAngle() const override
This function returns the cosine of the maximum field angle, i.e., the maximum angular distance from ...
double projectionK(double x) const override
This function handles some of the projection-specific code.
The Projector class is the primary class that serves as an interface to handle projections.
Definition projector.h:58
This is just a container that holds information needed to do projections.
Definition projector.h:37
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Jul 12 2024 12:00:41 by doxygen 1.11.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.