osu: finished no_leniency version
This commit is contained in:
@@ -25,6 +25,7 @@ pub(crate) enum Curve {
|
||||
}
|
||||
|
||||
impl Curve {
|
||||
#[inline]
|
||||
pub(crate) fn linear(a: Pos2, b: Pos2) -> Self {
|
||||
Self::Linear { a, b }
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user