mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-30 00:18:12 +08:00
Explain why the selective color and spline loops index by range
This commit is contained in:
@@ -63,6 +63,8 @@ impl CubicSplines {
|
||||
assert!(augmented_matrix[row][row].abs() > f32::EPSILON);
|
||||
|
||||
let scale_factor = augmented_matrix[row_below_current][row] / augmented_matrix[row][row];
|
||||
// `col` indexes two distinct rows at once, one of them mutably, so an iterator would need a split borrow
|
||||
#[allow(clippy::needless_range_loop)]
|
||||
for col in row..5 {
|
||||
augmented_matrix[row_below_current][col] -= augmented_matrix[row][col] * scale_factor
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user