Kstars

orthographicprojector.cpp
1 /*
2  SPDX-FileCopyrightText: 2010 Henry de Valence <[email protected]>
3 
4  SPDX-License-Identifier: GPL-2.0-or-later
5 */
6 
7 #include "orthographicprojector.h"
8 
9 OrthographicProjector::OrthographicProjector(const ViewParams &p) : Projector(p)
10 {
11  updateClipPoly();
12 }
13 
14 Projector::Projection OrthographicProjector::type() const
15 {
16  return Orthographic;
17 }
18 
20 {
21  return 1.0;
22 }
23 
24 double OrthographicProjector::projectionK(double x) const
25 {
26  Q_UNUSED(x);
27  return 1.0;
28 }
29 
30 double OrthographicProjector::projectionL(double x) const
31 {
32  return asin(x);
33 }
This is just a container that holds information needed to do projections.
Definition: projector.h:36
Projection type() const override
Return the type of this projection.
double radius() const override
Get the radius of this projection's sky circle.
double projectionL(double x) const override
This function handles some of the projection-specific code.
double projectionK(double x) const override
This function handles some of the projection-specific code.
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Fri Sep 22 2023 03:57:57 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.