@xh3b4sd.eth
I have been working a lot on 2D vector manipulation for an onchain game that I am cooking.
An interesting challenge was to constrict a curve as an alternative to standard smoothing functions. And the best approach I found was to simply lower the apex of a triangle of neighbouring nodes.
The Golang code I got calculates the updated mid point in 50 nanoseconds per triplet. Check the graph editor if you are interested in visualizing these types of polygons.
https://www.desmos.com/calculator/bg2iwrsgpx