diff options
Diffstat (limited to 'svgbob/src/buffer')
7 files changed, 16 insertions, 16 deletions
diff --git a/svgbob/src/buffer/cell_buffer/cell.rs b/svgbob/src/buffer/cell_buffer/cell.rs index 079a7f7..0a5b82e 100644 --- a/svgbob/src/buffer/cell_buffer/cell.rs +++ b/svgbob/src/buffer/cell_buffer/cell.rs @@ -1,6 +1,6 @@ use crate::{util, Point}; -use ncollide2d::query::PointQuery; -use ncollide2d::{ +use parry2d::query::PointQuery; +use parry2d::{ bounding_volume::AABB, math::Isometry, query::intersection_test, diff --git a/svgbob/src/buffer/fragment_buffer/fragment.rs b/svgbob/src/buffer/fragment_buffer/fragment.rs index ae0b2b4..2080f5f 100644 --- a/svgbob/src/buffer/fragment_buffer/fragment.rs +++ b/svgbob/src/buffer/fragment_buffer/fragment.rs @@ -4,10 +4,10 @@ pub use arc::Arc; pub use circle::Circle; pub use line::Line; pub use marker_line::{Marker, MarkerLine}; -use ncollide2d::bounding_volume::BoundingVolume; -use ncollide2d::query::PointQuery; -use ncollide2d::shape::ConvexPolygon; -use ncollide2d::{ +use parry2d::bounding_volume::BoundingVolume; +use parry2d::query::PointQuery; +use parry2d::shape::ConvexPolygon; +use parry2d::{ bounding_volume::AABB, math::Isometry, query::intersection_test, 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::*, *}, |