KD Chart API Documentation  3.1
TernaryConstants.cpp
Go to the documentation of this file.
1 /****************************************************************************
2 **
3 ** This file is part of the KD Chart library.
4 **
5 ** SPDX-FileCopyrightText: 2001 Klarälvdalens Datakonsult AB, a KDAB Group company <info@kdab.com>
6 **
7 ** SPDX-License-Identifier: MIT
8 **
9 ****************************************************************************/
10 
11 #include "TernaryConstants.h"
12 
13 #include <cmath>
14 
15 using namespace std;
16 
17 using namespace std;
18 
19 extern const qreal Sqrt3 = sqrt(3.0);
20 extern const qreal TriangleWidth = 1.0;
21 extern const qreal TriangleHeight = 0.5 * Sqrt3;
22 extern const QPointF TriangleTop(0.5, TriangleHeight);
23 extern const QPointF TriangleBottomLeft(0.0, 0.0);
24 extern const QPointF TriangleBottomRight(1.0, 0.0);
26 extern const QPointF Norm_C_A(-AxisVector_C_A.y(), AxisVector_C_A.x());
27 extern const QPointF AxisVector_B_A(TriangleTop);
28 extern const QPointF Norm_B_A(-AxisVector_B_A.y(), AxisVector_B_A.x());
29 extern const QPointF AxisVector_B_C(TriangleBottomRight);
30 extern const QPointF Norm_B_C(-AxisVector_B_C.y(), AxisVector_B_C.x());
31 
32 extern const qreal RelMarkerLength = 0.03 * TriangleWidth;
const QPointF AxisVector_C_A(TriangleTop - TriangleBottomRight)
const qreal Sqrt3
const QPointF Norm_B_C(-AxisVector_B_C.y(), AxisVector_B_C.x())
const QPointF TriangleBottomRight(1.0, 0.0)
const QPointF FullMarkerDistanceAC(-RelMarkerLength *Norm_C_A)
const QPointF Norm_C_A(-AxisVector_C_A.y(), AxisVector_C_A.x())
const qreal TriangleHeight
const QPointF Norm_B_A(-AxisVector_B_A.y(), AxisVector_B_A.x())
const QPointF FullMarkerDistanceBA(RelMarkerLength *Norm_B_A)
const QPointF TriangleBottomLeft(0.0, 0.0)
const qreal RelMarkerLength
const QPointF FullMarkerDistanceBC(RelMarkerLength *Norm_B_C)
const QPointF AxisVector_B_C(TriangleBottomRight)
const QPointF TriangleTop(0.5, TriangleHeight)
const QPointF AxisVector_B_A(TriangleTop)
const qreal TriangleWidth

© 2001 Klarälvdalens Datakonsult AB (KDAB)
"The Qt, C++ and OpenGL Experts"
https://www.kdab.com/
https://www.kdab.com/development-resources/qt-tools/kd-chart/
Generated by doxygen 1.9.1