Nix environment for working with shapes.
Install Nix with the Determinate Systems installer here:
curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix | \
sh -s -- install
Simple demonstration application showing the calculation of the point of intersection of two line segments.
nix run .#line-intersection
Simple polygon collision detection using Separating Axis Theorem
nix run .#polygon-creator
Development environment is provided using Nix and UV.
To enter the development environment run:
nix develop
And to run the script:
uv run main.py