summaryrefslogtreecommitdiffstats
path: root/svgbob/src/buffer/fragment_buffer/fragment/polygon.rs
diff options
context:
space:
mode:
authorJovansonlee Cesar <ivanceras@gmail.com>2021-07-12 20:37:56 +0800
committerJovansonlee Cesar <ivanceras@gmail.com>2021-07-12 20:37:56 +0800
commit039c74fefaab4c7226de57f258072fb6a5974722 (patch)
tree81c8d55990f7da6ea9c6398f247f767fce119845 /svgbob/src/buffer/fragment_buffer/fragment/polygon.rs
parentd379b7fe9ae6fa79d553715329d638301600319f (diff)
Initial migration from ncollide2d to parry2d
Diffstat (limited to 'svgbob/src/buffer/fragment_buffer/fragment/polygon.rs')
-rw-r--r--svgbob/src/buffer/fragment_buffer/fragment/polygon.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/svgbob/src/buffer/fragment_buffer/fragment/polygon.rs b/svgbob/src/buffer/fragment_buffer/fragment/polygon.rs
index f61e53c..d2d0815 100644
--- a/svgbob/src/buffer/fragment_buffer/fragment/polygon.rs
+++ b/svgbob/src/buffer/fragment_buffer/fragment/polygon.rs
@@ -175,7 +175,7 @@ impl Polygon {
impl Bounds for Polygon {
fn bounds(&self) -> (Point, Point) {
- let pl: Polyline<f32> = self.clone().into();
+ let pl: Polyline = self.clone().into();
let aabb = pl.local_aabb();
(Point::from(*aabb.mins), Point::from(*aabb.maxs))
}
@@ -195,8 +195,8 @@ impl fmt::Display for Polygon {
}
}
-impl Into<Polyline<f32>> for Polygon {
- fn into(self) -> Polyline<f32> {
+impl Into<Polyline> for Polygon {
+ fn into(self) -> Polyline {
let points: Vec<Point2<f32>> =
self.points.iter().map(|p| **p).collect();
Polyline::new(points, None)