Skip to content

Small app to visualize a set of lines in a plane and which line has the highest Y value at any given X value. Plus a little random art

Notifications You must be signed in to change notification settings

RyanButler53/lines

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The problem is as follows:

Given a list of lines (with unique slopes) determine which line has the highest y value at all x values.

Software Requirements:

  • Python: Pyqt6, matplotlib, numpy, pytest.
  • C++: C++ compiler with C++20 support
  • Build: Cmake with CTest

Running

Build Python Bindings: pip install . Run: python3 python/main.py

Testing

Build Tests: mkdir build && cd build && cmake .. && make -j5

Run Tests:

  • C++ Tests: cd build && ctest .
  • Python Tests (Requires pytest) pytest tests

In the GUI, there are two tabs. One will visualize the top lines and the other will attempt to create some random art. For the visualization, input the lines in y=mx+b (omitting the y=) form. Maximum of 25 lines For the random artwork, there is a maximum of 50 lines and no more than half of the number of lines can be highlighted (this is an odd issue, will look into)

About

Small app to visualize a set of lines in a plane and which line has the highest Y value at any given X value. Plus a little random art

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published