We currently have a 1D spring (NumericSpring) and a 2D spring (Point2DSpring). It would be nice to have a DimensionsSpring, which is really just a Point2DSpring with the axes renamed.
Point2DSpring can probably be refactored into a function that generates a class for a multidimensional spring of a given shape. Then, it should be as easy as
const DimensionsSpring = createMultidimensionalSpringClass({ axes: ['width', 'height'] });
We currently have a 1D spring (
NumericSpring) and a 2D spring (Point2DSpring). It would be nice to have aDimensionsSpring, which is really just aPoint2DSpringwith the axes renamed.Point2DSpringcan probably be refactored into a function that generates a class for a multidimensional spring of a given shape. Then, it should be as easy as