Moves closer to a target value.
When (== origin target)
, returns target
.
When (< origin target)
, returns (min target (+ origin step-by))
.
When (> origin target)
, returns (max target (- origin step-by))
.
Moves closer to a target value.
When (== origin target)
, returns target
.
When (< origin target)
, returns (min target (+ origin step-by))
.
When (> origin target)
, returns (max target (- origin step-by))
.