Makes a scalar into a bipolar value.
Wrapper for bipolar-based values. Immutable. All functions will clamp to keep it in legal range.
Scale & clamp value to bipolar range (-1..1).
Scale a number to bipolar range (-1..1). Not clamped, so we might exceed range.
Converts bipolar value to a scalar. That is, converts from -1..1 range to 0..1.
Pushes a bipolar value toward zero by amount
.
Return value is clamped on bipolar range of -1..1
Clamp a bipolar value