Scale & clamp value to bipolar range (-1..1).
// Scale 100 on 0..100 scaleBipolar.scale(100, 0, 100); // 1Bipolar.scale(50, 0, 100); // 0Bipolar.scale(0, 0, 100); // -1 Copy
// Scale 100 on 0..100 scaleBipolar.scale(100, 0, 100); // 1Bipolar.scale(50, 0, 100); // 0Bipolar.scale(0, 0, 100); // -1
Return value is clamped.
Value to scale
Minimum of scale
Maximum of scale
Bipolar value on -1..1 scale
Scale & clamp value to bipolar range (-1..1).
Return value is clamped.