Pure math helpers used by dimension-sliders and other range-style UI.
These functions are intentionally framework-free — no DOM, no THREE, no
scene state. They exist so the value/fraction/wrap logic can be unit
tested without a browser environment, and so any UI consumer that needs
the same math (range slider, dimension dropdown, etc.) shares one
implementation rather than reinventing it.
Pure math helpers used by dimension-sliders and other range-style UI.
These functions are intentionally framework-free — no DOM, no THREE, no scene state. They exist so the value/fraction/wrap logic can be unit tested without a browser environment, and so any UI consumer that needs the same math (range slider, dimension dropdown, etc.) shares one implementation rather than reinventing it.