diff options
Diffstat (limited to 'svgbob/src/buffer/fragment_buffer/fragment/polygon.rs')
-rw-r--r-- | svgbob/src/buffer/fragment_buffer/fragment/polygon.rs | 4 |
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() } } |