aboutsummaryrefslogtreecommitdiff
path: root/src/math
diff options
context:
space:
mode:
authorArne Dußin2020-11-24 13:16:47 +0100
committerArne Dußin2020-11-24 13:16:47 +0100
commit58ca28d4b21667e9b86939ad574f477e02f2b290 (patch)
tree8b836c9c635d6d08f641cd5c56e2242f426a369a /src/math
parente3f5f944ed90fa7fb96ad2b670ea34c0765df1ad (diff)
downloadgraf_karto-58ca28d4b21667e9b86939ad574f477e02f2b290.tar.gz
graf_karto-58ca28d4b21667e9b86939ad574f477e02f2b290.zip
Add unstable polygon room tool
Diffstat (limited to 'src/math')
-rw-r--r--src/math/polygon/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/math/polygon/mod.rs b/src/math/polygon/mod.rs
index f84211d..90d46bb 100644
--- a/src/math/polygon/mod.rs
+++ b/src/math/polygon/mod.rs
@@ -13,7 +13,7 @@ use num_traits::Zero;
use serde::{Deserialize, Serialize};
use std::ops::Neg;
-#[derive(Debug, Deserialize, Serialize)]
+#[derive(Clone, Debug, Deserialize, Serialize)]
// TODO: Support polygons with holes
pub struct Polygon<T: Scalar + Copy> {
corners: Vec<Vec2<T>>,