Skip to content

Instantly share code, notes, and snippets.

View Pflugshaupt's full-sized avatar

Adrian Pflugshaupt Pflugshaupt

View GitHub Profile
@Pflugshaupt
Pflugshaupt / ChebyshevApproximation.h
Created August 25, 2025 13:22
Chebyshev 1D/2D Approximation in C++
/*
==============================================================================
ChebyshevApproximation.h
Creates Chebyshev-polynomial approximations for smooth 1d and 2d function
lambdas and emits C++ source code to use in place of the lambda.
More info and examples: https://apulsoft.ch/blog/chebyshev-approximation/
(c) 2023 Adrian Pflugshaupt
@Pflugshaupt
Pflugshaupt / Catenary.h
Last active August 23, 2025 13:02
2D-catenary helper class for audio cable drawing in C++.
/*
==============================================================================
Catenary.h
Created: 30 Jan 2021 7:26:28pm
Author: Adrian Pflugshaupt
Calculates points on a catenary curve between two 2d points
with addLength "rope" added to the distance.