digiKam
perspectivetriangle.h
Go to the documentation of this file.
1
/* ============================================================
2
*
3
* This file is a part of digiKam project
4
* https://www.digikam.org
5
*
6
* Date : 2005-01-18
7
* Description : triangle geometry calculation class.
8
*
9
* Copyright (C) 2005-2022 by Gilles Caulier <caulier dot gilles at gmail dot com>
10
*
11
* This program is free software; you can redistribute it
12
* and/or modify it under the terms of the GNU General
13
* Public License as published by the Free Software Foundation;
14
* either version 2, or (at your option)
15
* any later version.
16
*
17
* This program is distributed in the hope that it will be useful,
18
* but WITHOUT ANY WARRANTY; without even the implied warranty of
19
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20
* GNU General Public License for more details.
21
*
22
* ============================================================ */
23
24
#ifndef DIGIKAM_EDITOR_PERSPECTIVE_TRIANGLE_H
25
#define DIGIKAM_EDITOR_PERSPECTIVE_TRIANGLE_H
26
27
// Qt includes
28
29
#include <QPoint>
30
31
namespace
DigikamEditorPerspectiveToolPlugin
32
{
33
34
class
PerspectiveTriangle
35
{
36
37
public
:
38
39
PerspectiveTriangle
(
const
QPoint& A,
const
QPoint& B,
const
QPoint& C);
40
~PerspectiveTriangle
() =
default
;
41
42
float
angleABC
()
const
;
43
float
angleACB
()
const
;
44
float
angleBAC
()
const
;
45
46
private
:
47
48
float
distanceP2P(
const
QPoint& p1,
const
QPoint& p2)
const
;
49
50
private
:
51
52
float
m_a;
53
float
m_b;
54
float
m_c;
55
};
56
57
}
// namespace DigikamEditorPerspectiveToolPlugin
58
59
#endif
// DIGIKAM_EDITOR_PERSPECTIVE_TRIANGLE_H
DigikamEditorPerspectiveToolPlugin::PerspectiveTriangle
Definition:
perspectivetriangle.h:35
DigikamEditorPerspectiveToolPlugin::PerspectiveTriangle::PerspectiveTriangle
PerspectiveTriangle(const QPoint &A, const QPoint &B, const QPoint &C)
Definition:
perspectivetriangle.cpp:37
DigikamEditorPerspectiveToolPlugin::PerspectiveTriangle::angleABC
float angleABC() const
Definition:
perspectivetriangle.cpp:44
DigikamEditorPerspectiveToolPlugin::PerspectiveTriangle::angleACB
float angleACB() const
Definition:
perspectivetriangle.cpp:49
DigikamEditorPerspectiveToolPlugin::PerspectiveTriangle::angleBAC
float angleBAC() const
Definition:
perspectivetriangle.cpp:54
DigikamEditorPerspectiveToolPlugin::PerspectiveTriangle::~PerspectiveTriangle
~PerspectiveTriangle()=default
DigikamEditorPerspectiveToolPlugin
Definition:
perspectivematrix.cpp:36
core
dplugins
editor
transform
perspective
perspectivetriangle.h
Generated by
1.9.1