File indexing completed on 2024-07-07 07:08:50

0001 /*
0002     SPDX-FileCopyrightText: 2010 Henry de Valence <hdevalence@gmail.com>
0003 
0004     SPDX-License-Identifier: GPL-2.0-or-later
0005 */
0006 
0007 #ifndef ORTHOGRAPHICPROJECTOR_H
0008 #define ORTHOGRAPHICPROJECTOR_H
0009 
0010 #include "projector.h"
0011 
0012 /**
0013  * @class OrthographicProjector
0014  *
0015  * Implememntation of <a href="https://en.wikipedia.org/wiki/Orthographic_projection">Orthographic projection</a>
0016  *
0017  */
0018 class OrthographicProjector : public Projector
0019 {
0020   public:
0021     explicit OrthographicProjector(const ViewParams &p);
0022     Projection type() const override;
0023     double radius() const override;
0024     double projectionK(double x) const override;
0025     double projectionL(double x) const override;
0026 };
0027 
0028 #endif // ORTHOGRAPHICPROJECTOR_H