File indexing completed on 2024-06-09 04:22:02
0001 /* 0002 * SPDX-FileCopyrightText: 2016 Dmitry Kazakov <dimula73@gmail.com> 0003 * 0004 * SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #ifndef __KIS_ALGEBRA_2D_TEST_H 0008 #define __KIS_ALGEBRA_2D_TEST_H 0009 0010 #include <QtTest/QtTest> 0011 0012 class KisAlgebra2DTest : public QObject 0013 { 0014 Q_OBJECT 0015 private Q_SLOTS: 0016 void testHalfPlane(); 0017 void testOuterCircle(); 0018 0019 void testQuadraticEquation(); 0020 void testIntersections(); 0021 void testWeirdIntersections(); 0022 0023 void testMatrixDecomposition1(); 0024 void testMatrixDecomposition2(); 0025 void testMatrixDecomposition3(); 0026 0027 void testDivisionWithFloor(); 0028 void testDrawEllipse(); 0029 0030 void testNullRectProcessing(); 0031 0032 void testLineIntersections(); 0033 void testLineRectIntersectionsManual(); 0034 void testLineRectIntersectionsRandom(); 0035 0036 void testLinePolygonIntersectionsManual(); 0037 0038 0039 void testFindTrianglePoint(); 0040 void testTriangularMotion(); 0041 0042 void testElasticMotion(); 0043 0044 void testHaltonSequence(); 0045 0046 void testMultiplyWrappedRect_data(); 0047 void testMultiplyWrappedRect(); 0048 0049 void testMultiplyWrappedRectHorizontal_data(); 0050 void testMultiplyWrappedRectHorizontal(); 0051 0052 void testMultiplyWrappedRectVertical_data(); 0053 void testMultiplyWrappedRectVertical(); 0054 }; 0055 0056 #endif /* __KIS_ALGEBRA_2D_TEST_H */