summaryrefslogtreecommitdiffstats
path: root/svgbob/src/buffer/fragment_buffer/fragment
diff options
context:
space:
mode:
Diffstat (limited to 'svgbob/src/buffer/fragment_buffer/fragment')
-rw-r--r--svgbob/src/buffer/fragment_buffer/fragment/arc.rs2
-rw-r--r--svgbob/src/buffer/fragment_buffer/fragment/circle.rs4
-rw-r--r--svgbob/src/buffer/fragment_buffer/fragment/line.rs6
-rw-r--r--svgbob/src/buffer/fragment_buffer/fragment/polygon.rs4
-rw-r--r--svgbob/src/buffer/fragment_buffer/fragment/rect.rs4
5 files changed, 10 insertions, 10 deletions
diff --git a/svgbob/src/buffer/fragment_buffer/fragment/arc.rs b/svgbob/src/buffer/fragment_buffer/fragment/arc.rs
index 5d7963e..dd9c81b 100644
--- a/svgbob/src/buffer/fragment_buffer/fragment/arc.rs
+++ b/svgbob/src/buffer/fragment_buffer/fragment/arc.rs
@@ -1,5 +1,5 @@
use crate::{buffer::Cell, fragment::Bounds, util, Point};
-use ncollide2d::shape::{Segment, Shape};
+use parry2d::shape::{Segment, Shape};
use sauron::{
html::attributes::*,
svg::{attributes::*, *},
diff --git a/svgbob/src/buffer/fragment_buffer/fragment/circle.rs b/svgbob/src/buffer/fragment_buffer/fragment/circle.rs
index 058b738..a77b44a 100644
--- a/svgbob/src/buffer/fragment_buffer/fragment/circle.rs
+++ b/svgbob/src/buffer/fragment_buffer/fragment/circle.rs
@@ -1,7 +1,7 @@
use crate::{fragment::Bounds, util, Cell, Point};
use nalgebra::Point2;
-use ncollide2d::shape::ConvexPolygon;
-use ncollide2d::shape::Polyline;
+use parry2d::shape::ConvexPolygon;
+use parry2d::shape::Polyline;
use std::{cmp::Ordering, fmt};
use sauron::{
diff --git a/svgbob/src/buffer/fragment_buffer/fragment/line.rs b/svgbob/src/buffer/fragment_buffer/fragment/line.rs
index 54c135b..a426f2e 100644
--- a/svgbob/src/buffer/fragment_buffer/fragment/line.rs
+++ b/svgbob/src/buffer/fragment_buffer/fragment/line.rs
@@ -3,9 +3,9 @@ use crate::{
fragment::{marker_line, Bounds, Circle, Marker, MarkerLine},
util, Direction, Point,
};
-use ncollide2d::query::PointQuery;
-use ncollide2d::{bounding_volume::AABB, shape::Polyline};
-use ncollide2d::{
+use parry2d::query::PointQuery;
+use parry2d::{bounding_volume::AABB, shape::Polyline};
+use parry2d::{
math::Isometry,
shape::{Segment, Shape},
};
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()
}
}
diff --git a/svgbob/src/buffer/fragment_buffer/fragment/rect.rs b/svgbob/src/buffer/fragment_buffer/fragment/rect.rs
index 0978bf4..7210c4a 100644
--- a/svgbob/src/buffer/fragment_buffer/fragment/rect.rs
+++ b/svgbob/src/buffer/fragment_buffer/fragment/rect.rs
@@ -1,6 +1,6 @@
use crate::{fragment::Bounds, util, Cell, Point};
-use ncollide2d::shape::ConvexPolygon;
-use ncollide2d::shape::{Polyline, Segment, Shape};
+use parry2d::shape::ConvexPolygon;
+use parry2d::shape::{Polyline, Segment, Shape};
use sauron::{
html::attributes::*,
svg::{attributes::*, *},