util.py
rerun_demo.util
Simpe utilities to be used for Rerun demos.
def bounce_lerp(a, b, t)
A linear interpolator that bounces between a
and b
as t
goes above 1.0
.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
a |
Start value (t == 0). |
required | |
b |
End value (t == 1). |
required | |
t |
Interpolation coefficient. |
required |
def interleave(arr1, arr2)
Interleaves two numpy arrays.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
arr1 |
A numpy array of arbitrary shape and length. |
required | |
arr2 |
A numpy array with the same shape and length as |
required |