File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed
Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change 1+ """
2+ struct Path{T}
3+
4+ A `Path` is a sequence of `PathChange`s, beginning from some `initialview::ViewState`.
5+ It is callable with a single parameter `t`, which is the time since the start of the path at `t=0`.
6+ It returns the `ViewState` at time `t`.
7+
8+ To add a new `PathChange` to a `Path`, use the `*` operator. This is non-mutating and will construct a new path!
9+ """
110struct Path{T}
211 initialview:: ViewState{T}
312 changes:: Vector{PathChange{T}}
413end
514Path{T}(initialview:: ViewState ) where T = Path{T}(initialview, PathChange{T}[])
15+
16+ """
17+ Path(initialview::ViewState{T}) where T
18+
19+ Construct a `Path` that starts at `initialview`.
20+ """
621Path(initialview:: ViewState{T} ) where T = Path{T}(initialview)
722
823function Base.:* (path:: Path{R} , change:: PathChange{S} ) where {R,S}
You can’t perform that action at this time.
0 commit comments