Skip to content
Snippets Groups Projects
main.cpp 719 B
Newer Older
  • Learn to ignore specific revisions
  • Pelotrio's avatar
    Pelotrio committed
    #include <QtWidgets/QApplication>
    #include "paint.h"
    #include <iostream>
    #include "util.h"
    
    //TODO: delete shapes of a certain size: DONE
    //TODO: align Circle Properly: DONE
    
    //TODO: Make even Lines Selectable
    //TODO: remove Herobrian
    
    
    int main(int argc, char *argv[]) {
        QApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
        QApplication::setHighDpiScaleFactorRoundingPolicy(
                Qt::HighDpiScaleFactorRoundingPolicy::PassThrough);
        QApplication app(argc, argv);
        Paint w;
        w.show();
    
    
        AlgLine l1(Point(0, -3), Point(1, 0));
        AlgLine l2(Point(0, 4), Point(2, 0));
    
        Point meet = linesIntersect(l1, l2);
        std::cout << meet.x << " " << meet.y << "\n";
    
    
        return app.exec();
    }