Sha256: 85dd3114773ef23ce0a976f54745118097f5577500508ff6c059a0cbb2dcae01
Contents?: true
Size: 324 Bytes
Versions: 2
Compression:
Stored size: 324 Bytes
Contents
module Variation class LinearChange < Change # Pass :length and :end_value by hash. Length must be > 0. def initialize hashed_args super(hashed_args) end def transition_function start_point end_point = [start_point[0] + length, end_value] LinearFunction.from_points start_point, end_point end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
variation-0.2.1 | lib/variation/changes/linear_change.rb |
variation-0.2.0 | lib/variation/changes/linear_change.rb |