Quantum 3
3.0.13
Simple ring buffer to store transform data. More...
Public Member Functions | |
| InterpolationBuffer (int size) | |
| Create the collection with a given capacity. More... | |
| void | Add (T t, int tick) |
| Add a new item to the collection. More... | |
| void | Reset () |
| Reset the collection. More... | |
| bool | TryGet (out T t, int tick) |
| Try get a value from the collection for the given frame number. More... | |
Simple ring buffer to store transform data.
| T | Type of data to store |
|
inline |
Create the collection with a given capacity.
| size | Capacity |
|
inline |
Reset the collection.
|
inline |
Add a new item to the collection.
| t | The object |
| tick | The frame number |
|
inline |
Try get a value from the collection for the given frame number.
| t | Resulting object |
| tick | Requested frame number |