diff options
| author | Arne Dußin | 2020-11-24 13:16:47 +0100 |
|---|---|---|
| committer | Arne Dußin | 2020-11-24 13:16:47 +0100 |
| commit | 58ca28d4b21667e9b86939ad574f477e02f2b290 (patch) | |
| tree | 8b836c9c635d6d08f641cd5c56e2242f426a369a /src/math | |
| parent | e3f5f944ed90fa7fb96ad2b670ea34c0765df1ad (diff) | |
| download | graf_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.rs | 2 |
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>>, |
