summaryrefslogtreecommitdiffstats
path: root/svgbob/src/buffer/fragment_buffer/fragment/polygon.rs
diff options
context:
space:
mode:
authorJovansonlee Cesar <ivanceras@gmail.com>2021-07-13 03:14:29 +0800
committerJovansonlee Cesar <ivanceras@gmail.com>2021-07-13 03:14:29 +0800
commitd4fe7977c78bbf6eb8a19b85d94d4b01161dafa0 (patch)
treef4266676c9d97bc9e2a8c39608c4ba1e3a8bfa76 /svgbob/src/buffer/fragment_buffer/fragment/polygon.rs
parent039c74fefaab4c7226de57f258072fb6a5974722 (diff)
Use the parry2d in the crate imports
Diffstat (limited to 'svgbob/src/buffer/fragment_buffer/fragment/polygon.rs')
-rw-r--r--svgbob/src/buffer/fragment_buffer/fragment/polygon.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/svgbob/src/buffer/fragment_buffer/fragment/polygon.rs b/svgbob/src/buffer/fragment_buffer/fragment/polygon.rs
index d2d0815..42814c1 100644
--- a/svgbob/src/buffer/fragment_buffer/fragment/polygon.rs
+++ b/svgbob/src/buffer/fragment_buffer/fragment/polygon.rs
@@ -4,7 +4,7 @@ use crate::{
Cell, Point,
};
use nalgebra::Point2;
-use ncollide2d::shape::{shape::Shape, Polyline};
+use parry2d::shape::{shape::Shape, Polyline};
use sauron::{
html::attributes::*,
svg::{attributes::*, *},
@@ -169,7 +169,7 @@ impl Polygon {
pub(crate) fn center(&self) -> Point {
let points: Vec<Point2<f32>> =
self.points.iter().map(|p| **p).collect();
- (ncollide2d::utils::center(&points)).into()
+ (parry2d::utils::center(&points)).into()
}
}