Math in Bitbybit
How bitbybit.math does arithmetic, rounding, trigonometry in radians, random numbers, safe evaluation of typed expressions, and the blending, easing and wrapping helpers used for animation and parametric variation.
The arithmetic, trigonometry and number utilities behind every parametric model in Bitbybit. Parametric design is arithmetic applied to geometry: remapping a slider's range onto a real dimension, driving a spiral with sine and cosine, rounding a value to a manufacturable step, or clamping user input into a range your model can actually build. These pages cover the basic operators, trigonometric functions, rounding and clamping, random numbers, and the interpolation helpers used to blend between two values. Each example is shown in Rete, Blockly and TypeScript.
How bitbybit.math does arithmetic, rounding, trigonometry in radians, random numbers, safe evaluation of typed expressions, and the blending, easing and wrapping helpers used for animation and parametric variation.