Coder Social home page Coder Social logo

hackathon-impact-triangulation's Introduction

Hackathon-Impact-triangulation

Algorithm developed in the framework of a Hackathon for the positioning of arrows impact on target by triangulation (calculate the intersections between circles and parabolas).

Set up the app

Create a virtual environment#

To create a virtual environment, use the following command, where ".venv" is the name of the environment folder:

# macOS/Linux
# You may need to run sudo apt-get install python3-venv first
python3 -m venv .venv

# Windows
# You can also use py -3 -m venv .venv
python -m venv .venv

Load a virtual environment

# macOS/LInux
source .venv/bin/activate
# Windows
.venv\scripts\activate

Install package in a virtual environment

Example with matplotlib

# Don't use with Anaconda distributions because they include matplotlib already.

# macOS
python3 -m pip install matplotlib

# Windows (may require elevation)
python -m pip install matplotlib

# Linux (Debian)
apt-get install python3-tk
python3 -m pip install matplotlib

Package to download

pip install -r requirements.txt

Use the app

Launching the app

python main.py

Selecting a file

For example select the following test file : TestFiles\testfile1.txt

Coordinate should be lower than 1.

1                                           # -> type of algorithme used
2                                           # -> number of circles
0.673858901432946 0.301141098567054 0.2     # -> positionX positionY radius
0.401141098567053 0.573858901432946 0.3

Expected results

Primary window

image-20220125175724782

Graphic window

image-20220125175839481

hackathon-impact-triangulation's People

Contributors

naedri avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.