ixfx
    Preparing search index...

    Namespace Bipolar

    Functions

    clamp

    Clamp a bipolar value

    fromScalar

    Makes a scalar into a bipolar value.

    immutable

    Wrapper for bipolar-based values. Immutable. All functions will clamp to keep it in legal range.

    scale

    Scale & clamp value to bipolar range (-1..1).

    scaleUnclamped

    Scale a number to bipolar range (-1..1). Not clamped, so we might exceed range.

    toScalar

    Converts bipolar value to a scalar. That is, converts from -1..1 range to 0..1.

    towardZero

    Pushes a bipolar value toward zero by amount. Return value is clamped on bipolar range of -1..1