more math for lua
You can add it to your Playdate project by installing toybox.py, going to your project folder in a Terminal window and typing:
toybox add https://github.com/RobertCurry0216/more_math
toybox update
Then, if your code is in the source folder, just import the following:
import '../toyboxes/toyboxes.lua'