player seek and chapter change

This commit is contained in:
Dr-Blank 2024-05-19 08:53:21 -04:00
parent 01b3dead49
commit d01855c218
No known key found for this signature in database
GPG key ID: 7452CC63F210A266
17 changed files with 1721 additions and 305 deletions

View file

@ -0,0 +1,13 @@
extension InverseLerp on num {
/// Returns the fraction of this value between [min] and [max].
double inverseLerp(num min, num max) {
return (this - min) / (max - min);
}
}
extension Lerp on double {
/// Returns the value between [min] and [max] given the fraction [t].
double lerp(double min, double max) {
return min + ((max - min) * this);
}
}