diff options
| author | Arne Dußin | 2020-11-25 22:16:46 +0100 |
|---|---|---|
| committer | Arne Dußin | 2020-11-25 22:16:46 +0100 |
| commit | da19f0174b99db02e50d2f1db8aae6245d7981ca (patch) | |
| tree | 472062583ecc447a18b4f5003b6840cfa063eb1e /src/math/polygon | |
| parent | 77f2d35cb52d9443e9a0e9250aa941fc3d7610b6 (diff) | |
| download | graf_karto-da19f0174b99db02e50d2f1db8aae6245d7981ca.tar.gz graf_karto-da19f0174b99db02e50d2f1db8aae6245d7981ca.zip | |
Fix clippy lints and add polygon tool button icon
Diffstat (limited to 'src/math/polygon')
| -rw-r--r-- | src/math/polygon/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/math/polygon/mod.rs b/src/math/polygon/mod.rs index e1f15c5..ed48751 100644 --- a/src/math/polygon/mod.rs +++ b/src/math/polygon/mod.rs @@ -367,7 +367,7 @@ impl< * after another until finally connecting the last point to the first point in radians. Negative, * when the points in sum are right-turning, positive, when they are left-turning. */ -fn combined_angle<T: Scalar + Copy + RealField>(points: &Vec<Vec2<T>>) -> T { +fn combined_angle<T: Scalar + Copy + RealField>(points: &[Vec2<T>]) -> T { let mut combined_angle = T::zero(); for i in 0..points.len() { let prev = (i + points.len() - 1) % points.len(); |
