Skip to content

armgit / krita

Public Imported from GitHub
0

Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.

C++
1.7 KB
Raw Blame
/*
 *  SPDX-FileCopyrightText: 2016 Dmitry Kazakov <[email protected]>
 *
 *  SPDX-License-Identifier: GPL-2.0-or-later
 */

#ifndef __KIS_ALGEBRA_2D_TEST_H
#define __KIS_ALGEBRA_2D_TEST_H

#include <QTest>

class KisAlgebra2DTest : public QObject
{
    Q_OBJECT
private Q_SLOTS:
    void testHalfPlane();
    void testOuterCircle();

    void testQuadraticEquation();
    void testIntersections();
    void testWeirdIntersections();

    void testMatrixDecomposition1();
    void testMatrixDecomposition2();
    void testMatrixDecomposition3();

    void testDivisionWithFloor();
    void testDrawEllipse();

    void testNullRectProcessing();

    void testLineIntersections();
    void testLineRectIntersectionsManual();
    void testLineRectIntersectionsRandom();

    void testLinePolygonIntersectionsManual();

    void testCalculateConvexHull();
    void testGetPathsFromRectangleCutThrough();
    void testGetParallelLines();
    void testGetParallelLines2();


    void testVectorPathReversed();
    void testVectorPathIndexes_data();
    void testVectorPathIndexes();


    void testIsInsideShape_data();
    void testIsInsideShape();


    void testRemoveGutter_data();
    void testRemoveGutter();
    void testMergingPainterPaths();



    void testFindTrianglePoint();
    void testTriangularMotion();

    void testElasticMotion();

    void testHaltonSequence();

    void testMultiplyWrappedRect_data();
    void testMultiplyWrappedRect();

    void testMultiplyWrappedRectHorizontal_data();
    void testMultiplyWrappedRectHorizontal();

    void testMultiplyWrappedRectVertical_data();
    void testMultiplyWrappedRectVertical();

    void testIsPolygonTrulyConvex_data();
    void testIsPolygonTrulyConvex();

};

#endif /* __KIS_ALGEBRA_2D_TEST_H */