moveToState
fn
float moveToState(float from, bool to, float delta) @trusted @safe nothrow @nogcMoves from toward 1 by delta if to is true, or toward 0 if false. Result is clamped to [0, 1].