Vector Curve container #1677
Labels
area: util
Utilitis and data structures
lang: c++
Done in C++ code
nice new thing ☺
A new feature that was not there before
We should add a
curve::Vector
type to our curve container classes to record changes to sequences over time.The new vector type should implement these methods:
Read
get(t, i)
i
at timet
get(t)
t
size(t)
t
frame(t, i)
i
before or att
next_frame(t, i)
i
aftert
There should also be an iterator type to iterate over the vector at time
t
.Modify
insert(t, i, value)
i
at timet
erase(t, i)
i
at timet
set_insert(t, i, value)
t
at indexi
set_last(t, i, value)
t
; delete all keyframes after timet
at indexi
set_replace(t, i, value)
t
at indexi
; remove all other keyframes with timet
at indexi
The text was updated successfully, but these errors were encountered: