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

Call LinearPart for any number

parent 955ccb5f
No related branches found
No related tags found
No related merge requests found
Pipeline #23483 passed
......@@ -14,7 +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
(lp::LinearPart)(time::Number) = @. (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