• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdeedu API Reference
  • KDE Home
  • Contact Us
 

kstars

  • sources
  • kde-4.12
  • kdeedu
  • kstars
  • kstars
  • projections
stereographicprojector.cpp
Go to the documentation of this file.
1 /*
2  <one line to give the program's name and a brief idea of what it does.>
3  Copyright (C) <year> <name of author>
4 
5  This program is free software; you can redistribute it and/or modify
6  it under the terms of the GNU General Public License as published by
7  the Free Software Foundation; either version 2 of the License, or
8  (at your option) any later version.
9 
10  This program is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  GNU General Public License for more details.
14 
15  You should have received a copy of the GNU General Public License along
16  with this program; if not, write to the Free Software Foundation, Inc.,
17  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
18 
19 */
20 
21 #include "stereographicprojector.h"
22 
23 StereographicProjector::StereographicProjector(const ViewParams& p)
24  : Projector(p)
25 {
26 
27 }
28 
29 SkyMap::Projection StereographicProjector::type() const
30 {
31  return SkyMap::Stereographic;
32 }
33 
34 double StereographicProjector::radius() const
35 {
36  return 2.;
37 }
38 
39 double StereographicProjector::projectionK(double x) const
40 {
41  return 2.0/(1.0 + x);
42 }
43 
44 double StereographicProjector::projectionL(double x) const
45 {
46  return 2.0*atan2( x, 2.0 );
47 }
SkyMap::Projection
Projection
Definition: skymap.h:96
stereographicprojector.h
StereographicProjector::StereographicProjector
StereographicProjector(const ViewParams &p)
Definition: stereographicprojector.cpp:23
StereographicProjector::radius
virtual double radius() const
Get the radius of this projection's sky circle.
Definition: stereographicprojector.cpp:34
StereographicProjector::type
virtual SkyMap::Projection type() const
Return the type of this projection.
Definition: stereographicprojector.cpp:29
Projector
This class serves as an interface to handle projections.
Definition: projector.h:49
StereographicProjector::projectionK
virtual double projectionK(double x) const
This function handles some of the projection-specific code.
Definition: stereographicprojector.cpp:39
SkyMap::Stereographic
Definition: skymap.h:100
StereographicProjector::projectionL
virtual double projectionL(double x) const
This function handles some of the projection-specific code.
Definition: stereographicprojector.cpp:44
ViewParams
This is just a container that holds infromation needed to do projections.
Definition: projector.h:37
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:36:21 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kstars

Skip menu "kstars"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdeedu API Reference

Skip menu "kdeedu API Reference"
  • Analitza
  •     lib
  • kalgebra
  • kalzium
  •   libscience
  • kanagram
  • kig
  •   lib
  • klettres
  • kstars
  • libkdeedu
  •   keduvocdocument
  • marble
  • parley
  • rocs
  •   App
  •   RocsCore
  •   VisualEditor
  •   stepcore

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal