osu: finished no_leniency version

This commit is contained in:
MaxOhn
2021-01-15 19:39:02 +01:00
parent cb5b9c8f1d
commit 9cc4cba965
15 changed files with 343 additions and 432 deletions
+1
View File
@@ -25,6 +25,7 @@ pub(crate) enum Curve {
}
impl Curve {
#[inline]
pub(crate) fn linear(a: Pos2, b: Pos2) -> Self {
Self::Linear { a, b }
}
-1
View File
@@ -71,7 +71,6 @@ pub(crate) fn point_at_distance(array: &[Pos2], distance: f32) -> Pos2 {
let mut current_distance = 0.0;
let mut new_distance = 0.0;
// TODO: Optimize
while i < array.len() - 2 {
new_distance = (array[i] - array[i + 1]).length();
current_distance += new_distance;