Skip to content
Snippets Groups Projects
Verified Commit fdd85ba6 authored by Michiel Cottaar's avatar Michiel Cottaar
Browse files

Call LinearPart with time to get value

parent 008e1602
No related branches found
No related tags found
No related merge requests found
......@@ -14,6 +14,7 @@ end
Base.iszero(lp::LinearPart) = iszero(lp.start_value) && iszero(lp.end_value)
Base.iszero(lp::LinearPart{<:AbstractVector}) = all(iszero.(lp.start_value)) && all(iszero.(lp.end_value))
(lp::LinearPart)(time::Float64) = @. (1 - time) * lp.start_value + time * lp.end_value
"""
SequencePart(sequence, time1, time2)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment